Files
pandoc/test/command/10271.md
T
John MacFarlane bdb1172385 Typst writer: make smart extension work.
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.
2024-10-08 21:58:25 -07:00

30 lines
362 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 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---"
```