aboutsummaryrefslogtreecommitdiff
path: root/test/command/ascii.md
diff options
context:
space:
mode:
authorquasicomputational <quasicomputational@gmail.com>2018-11-05 17:33:10 +0000
committerJohn MacFarlane <jgm@berkeley.edu>2018-11-05 09:33:10 -0800
commita747268823890c1a82593c88e813fa649f6bc247 (patch)
tree632e6c08229995d23ac2d8c49a36d277ba0eda96 /test/command/ascii.md
parent249fd40838519fc272f64eaab6c40804e169e5e4 (diff)
downloadpandoc-a747268823890c1a82593c88e813fa649f6bc247.tar.gz
CommonMark writer: respect --ascii (#5043)
Diffstat (limited to 'test/command/ascii.md')
-rw-r--r--test/command/ascii.md36
1 files changed, 36 insertions, 0 deletions
diff --git a/test/command/ascii.md b/test/command/ascii.md
index 96fc50291..d01389a60 100644
--- a/test/command/ascii.md
+++ b/test/command/ascii.md
@@ -51,3 +51,39 @@ pandoc -t markdown-smart --ascii
&ldquo;&auml;&eacute;&imath;&aring;&rdquo;
```
+# CommonMark tests
+
+```
+% pandoc -f commonmark -t commonmark --ascii
+hello … ok? … bye
+^D
+hello &mldr; ok? &mldr; bye
+```
+
+```
+% pandoc -f commonmark+smart -t commonmark-smart --ascii --wrap=none
+"hi"...dog's breath---cat 5--6
+^D
+&ldquo;hi&rdquo;&mldr;dog&rsquo;s breath&mdash;cat 5&ndash;6
+```
+
+```
+% pandoc -f commonmark+smart -t commonmark+smart --ascii
+"hi"...dog's breath---cat 5--6
+^D
+"hi"...dog's breath---cat 5--6
+```
+
+```
+% pandoc -f commonmark -t commonmark --ascii
+foo &#1234; bar
+^D
+foo &#1234; bar
+```
+
+```
+% pandoc -f commonmark -t commonmark --ascii
+\[foo\](bar)
+^D
+\[foo\](bar)
+```