diff options
author | Dmitry Shachnev <mitya57@gmail.com> | 2013-07-26 09:13:20 +0400 |
---|---|---|
committer | Dmitry Shachnev <mitya57@gmail.com> | 2013-07-26 09:13:20 +0400 |
commit | 61066d49189b156a54778b7ef70dfd0a3ed86e93 (patch) | |
tree | 990b083c2bc6d1e01756a73104332534d0a32b12 /tests | |
parent | a9ca97325e9039de90eae29fb3d8879bc9f367f6 (diff) | |
download | markdown-61066d49189b156a54778b7ef70dfd0a3ed86e93.tar.gz markdown-61066d49189b156a54778b7ef70dfd0a3ed86e93.tar.bz2 markdown-61066d49189b156a54778b7ef70dfd0a3ed86e93.zip |
Add smarty extension, based on SmartyPants library
Diffstat (limited to 'tests')
-rw-r--r-- | tests/extensions/smarty.html | 16 | ||||
-rw-r--r-- | tests/extensions/smarty.txt | 19 | ||||
-rw-r--r-- | tests/extensions/test.cfg | 3 |
3 files changed, 38 insertions, 0 deletions
diff --git a/tests/extensions/smarty.html b/tests/extensions/smarty.html new file mode 100644 index 0000000..2485ab7 --- /dev/null +++ b/tests/extensions/smarty.html @@ -0,0 +1,16 @@ +<p>1440–80’s<br /> +1440–‘80s<br /> +1440—‘80s<br /> +1960s<br /> +1960’s<br /> +one two ‘60s<br /> +‘60s</p> +<p>“Isn’t this fun”? — she said…<br /> +“‘Quoted’ words in a larger quote.”<br /> +“quoted” text and <strong>bold “quoted” text</strong><br /> +‘quoted’ text and <strong>bold ‘quoted’ text</strong><br /> +em-dashes (—) and ellipes (…)<br /> +“<a href="http://example.com">Link</a>” — she said.</p> +<hr /> +<p>Escaped -- ndash<br /> +Escaped ellipsis...</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..4015f71 --- /dev/null +++ b/tests/extensions/smarty.txt @@ -0,0 +1,19 @@ +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" text and **bold "quoted" text** +'quoted' text and **bold 'quoted' text** +em-dashes (---) and ellipes (...) +"[Link](http://example.com)" --- she said. + +--- -- --- + +Escaped \-- ndash +Escaped ellipsis\...
\ 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 |