summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pandoc.cabal1
-rw-r--r--test/command/smart.md25
2 files changed, 26 insertions, 0 deletions
diff --git a/pandoc.cabal b/pandoc.cabal
index f8c2fa5c6..9ed1eb47d 100644
--- a/pandoc.cabal
+++ b/pandoc.cabal
@@ -122,6 +122,7 @@ Extra-Source-Files:
-- tests
test/bodybg.gif
test/*.native
+ test/command/*.md
test/docbook-reader.docbook
test/docbook-xref.docbook
test/html-reader.html
diff --git a/test/command/smart.md b/test/command/smart.md
new file mode 100644
index 000000000..541275f4a
--- /dev/null
+++ b/test/command/smart.md
@@ -0,0 +1,25 @@
+```
+% pandoc -f markdown+smart -t markdown-smart
+"hi"...dog's breath---cat 5--6
+^D
+“hi”…dog’s breath—cat 5–6
+```
+
+```
+% pandoc -f markdown+smart -t markdown+smart
+"hi"...dog's breath---cat 5--6
+^D
+"hi"...dog's breath---cat 5--6
+```
+
+When we render literal quotes without smart, we need to escape:
+
+```
+% pandoc -f markdown-smart \
+ -t markdown+smart
+"hi"...dog's breath---cat 5--6
+^D
+\"hi\"\...dog\'s breath\-\--cat 5\--6
+```
+
+