summaryrefslogtreecommitdiff
path: root/test/command/smart.md
blob: 541275f4ad6258b6c109b3b3ae37d55afcf2bc86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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
```