From 61066d49189b156a54778b7ef70dfd0a3ed86e93 Mon Sep 17 00:00:00 2001
From: Dmitry Shachnev
Date: Fri, 26 Jul 2013 09:13:20 +0400
Subject: Add smarty extension, based on SmartyPants library
---
tests/extensions/smarty.html | 16 ++++++++++++++++
tests/extensions/smarty.txt | 19 +++++++++++++++++++
tests/extensions/test.cfg | 3 +++
3 files changed, 38 insertions(+)
create mode 100644 tests/extensions/smarty.html
create mode 100644 tests/extensions/smarty.txt
(limited to 'tests/extensions')
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 @@
+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” — she said.
+
+Escaped -- ndash
+Escaped ellipsis...
\ 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
--
cgit v1.2.3
From 85ad18071d61925168387934e4e6f9f82462c292 Mon Sep 17 00:00:00 2001
From: Dmitry Shachnev
Date: Sat, 27 Jul 2013 16:21:00 +0400
Subject: Some fixes requested by @waylan, cleanup and tests improvements
---
tests/extensions/smarty.html | 6 +++++-
tests/extensions/smarty.txt | 7 ++++++-
2 files changed, 11 insertions(+), 2 deletions(-)
(limited to 'tests/extensions')
diff --git a/tests/extensions/smarty.html b/tests/extensions/smarty.html
index 2485ab7..fbd15af 100644
--- a/tests/extensions/smarty.html
+++ b/tests/extensions/smarty.html
@@ -7,10 +7,14 @@ 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” — she said.
Escaped -- ndash
-Escaped ellipsis...
\ No newline at end of file
+'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/smarty.txt b/tests/extensions/smarty.txt
index 4015f71..5b5ece7 100644
--- a/tests/extensions/smarty.txt
+++ b/tests/extensions/smarty.txt
@@ -8,6 +8,7 @@ one two '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 (...)
@@ -16,4 +17,8 @@ em-dashes (---) and ellipes (...)
--- -- ---
Escaped \-- ndash
-Escaped ellipsis\...
\ No newline at end of file
+\'Escaped\' \"quotes\"
+Escaped ellipsis\...
+
+'Escaped \"quotes\" in real ones'
+\'"Real" quotes in escaped ones\'
\ No newline at end of file
--
cgit v1.2.3