aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2013-07-28 06:57:03 -0700
committerWaylan Limberg <waylan@gmail.com>2013-07-28 06:57:03 -0700
commita37c60ac5185c8d5f46b2e5ab7214022e2d76e8c (patch)
tree891a890d8de8452298bb18a8e4703c1940567947 /tests
parenta9ca97325e9039de90eae29fb3d8879bc9f367f6 (diff)
parent85ad18071d61925168387934e4e6f9f82462c292 (diff)
downloadmarkdown-a37c60ac5185c8d5f46b2e5ab7214022e2d76e8c.tar.gz
markdown-a37c60ac5185c8d5f46b2e5ab7214022e2d76e8c.tar.bz2
markdown-a37c60ac5185c8d5f46b2e5ab7214022e2d76e8c.zip
Merge pull request #231 from mitya57/master
Add Smarty extension and use it for building docs.
Diffstat (limited to 'tests')
-rw-r--r--tests/extensions/smarty.html20
-rw-r--r--tests/extensions/smarty.txt24
-rw-r--r--tests/extensions/test.cfg3
3 files changed, 47 insertions, 0 deletions
diff --git a/tests/extensions/smarty.html b/tests/extensions/smarty.html
new file mode 100644
index 0000000..fbd15af
--- /dev/null
+++ b/tests/extensions/smarty.html
@@ -0,0 +1,20 @@
+<p>1440&ndash;80&rsquo;s<br />
+1440&ndash;&lsquo;80s<br />
+1440&mdash;&lsquo;80s<br />
+1960s<br />
+1960&rsquo;s<br />
+one two &lsquo;60s<br />
+&lsquo;60s</p>
+<p>&ldquo;Isn&rsquo;t this fun&rdquo;? &mdash; she said&hellip;<br />
+&ldquo;&lsquo;Quoted&rsquo; words in a larger quote.&rdquo;<br />
+&lsquo;Quoted &ldquo;words&rdquo; in a larger quote.&rsquo;<br />
+&ldquo;quoted&rdquo; text and <strong>bold &ldquo;quoted&rdquo; text</strong><br />
+&lsquo;quoted&rsquo; text and <strong>bold &lsquo;quoted&rsquo; text</strong><br />
+em-dashes (&mdash;) and ellipes (&hellip;)<br />
+&ldquo;<a href="http://example.com">Link</a>&rdquo; &mdash; she said.</p>
+<hr />
+<p>Escaped -- ndash<br />
+'Escaped' "quotes"<br />
+Escaped ellipsis...</p>
+<p>&lsquo;Escaped "quotes" in real ones&rsquo;<br />
+'&ldquo;Real&rdquo; quotes in escaped ones'</p> \ No newline at end of file
diff --git a/tests/extensions/smarty.txt b/tests/extensions/smarty.txt
new file mode 100644
index 0000000..5b5ece7
--- /dev/null
+++ b/tests/extensions/smarty.txt
@@ -0,0 +1,24 @@
+1440--80's
+1440--'80s
+1440---'80s
+1960s
+1960's
+one two '60s
+'60s
+
+"Isn't this fun"? --- she said...
+"'Quoted' words in a larger quote."
+'Quoted "words" in a larger quote.'
+"quoted" text and **bold "quoted" text**
+'quoted' text and **bold 'quoted' text**
+em-dashes (---) and ellipes (...)
+"[Link](http://example.com)" --- she said.
+
+--- -- ---
+
+Escaped \-- ndash
+\'Escaped\' \"quotes\"
+Escaped ellipsis\...
+
+'Escaped \"quotes\" in real ones'
+\'"Real" quotes in escaped ones\' \ No newline at end of file
diff --git a/tests/extensions/test.cfg b/tests/extensions/test.cfg
index 42145c1..1a13b1c 100644
--- a/tests/extensions/test.cfg
+++ b/tests/extensions/test.cfg
@@ -38,3 +38,6 @@ extensions=nl2br,attr_list
[admonition]
extensions=admonition
+
+[smarty]
+extensions=smarty