If `smart` is not enabled, a command in the default template will disable smartquote substitutions. When `smart` is enabled, render curly apostrophes as straight and escape straight apostrophes. When `smart` is disabled, render curly apostrophes as curly and don't escape straight apostrophes. And similarly for quotes, em and en dashes. This should give more idiomatic typst output, with fewer unnecessary escapes. Closes #10271.
30 lines
362 B
Markdown
30 lines
362 B
Markdown
```
|
||
% pandoc -f markdown+smart -t typst+smart
|
||
"don't do it---"
|
||
^D
|
||
"don't do it---"
|
||
|
||
```
|
||
```
|
||
% pandoc -f markdown+smart -t typst-smart
|
||
"don't do it---"
|
||
^D
|
||
“don’t do it—”
|
||
|
||
```
|
||
```
|
||
% pandoc -f markdown-smart -t typst+smart
|
||
"don't do it---"
|
||
^D
|
||
\"don\'t do it---\"
|
||
|
||
```
|
||
```
|
||
% pandoc -f markdown-smart -t typst-smart
|
||
"don't do it---"
|
||
^D
|
||
"don't do it---"
|
||
|
||
```
|
||
|