Added first command test to cabal metadata and repo.

This commit is contained in:
John MacFarlane 2017-02-04 21:31:48 +01:00
parent 623d860be6
commit ce9ec67970
2 changed files with 26 additions and 0 deletions

View file

@ -122,6 +122,7 @@ Extra-Source-Files:
-- tests -- tests
test/bodybg.gif test/bodybg.gif
test/*.native test/*.native
test/command/*.md
test/docbook-reader.docbook test/docbook-reader.docbook
test/docbook-xref.docbook test/docbook-xref.docbook
test/html-reader.html test/html-reader.html

25
test/command/smart.md Normal file
View file

@ -0,0 +1,25 @@
```
% pandoc -f markdown+smart -t markdown-smart
"hi"...dog's breath---cat 5--6
^D
“hi”…dogs breath—cat 56
```
```
% 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
```