Added first command test to cabal metadata and repo.
This commit is contained in:
parent
623d860be6
commit
ce9ec67970
2 changed files with 26 additions and 0 deletions
|
@ -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
25
test/command/smart.md
Normal file
|
@ -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
|
||||||
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue