aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-02-04 21:31:48 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2017-02-04 21:56:32 +0100
commitce9ec679707fa1f199794a29dff200ac66d9f310 (patch)
treedb571cef5125529374e292f7e3ce2e86f7043fa7 /test
parent623d860be6578c51f7937933ca2ce7ec2ddc91b5 (diff)
downloadpandoc-ce9ec679707fa1f199794a29dff200ac66d9f310.tar.gz
Added first command test to cabal metadata and repo.
Diffstat (limited to 'test')
-rw-r--r--test/command/smart.md25
1 files changed, 25 insertions, 0 deletions
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
+```
+
+