diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-02-04 21:31:48 +0100 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-02-04 21:56:32 +0100 |
commit | ce9ec679707fa1f199794a29dff200ac66d9f310 (patch) | |
tree | db571cef5125529374e292f7e3ce2e86f7043fa7 | |
parent | 623d860be6578c51f7937933ca2ce7ec2ddc91b5 (diff) | |
download | pandoc-ce9ec679707fa1f199794a29dff200ac66d9f310.tar.gz |
Added first command test to cabal metadata and repo.
-rw-r--r-- | pandoc.cabal | 1 | ||||
-rw-r--r-- | test/command/smart.md | 25 |
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 +``` + + |