From ce9ec679707fa1f199794a29dff200ac66d9f310 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 4 Feb 2017 21:31:48 +0100 Subject: [PATCH] Added first command test to cabal metadata and repo. --- pandoc.cabal | 1 + test/command/smart.md | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 test/command/smart.md 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 +``` + +