pandoc/test/command/smart.md
2017-02-04 22:09:19 +01:00

45 lines
796 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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