mirror of
https://github.com/jgm/pandoc.git
synced 2026-07-11 03:47:20 +00:00
bdb1172385
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.
362 B
362 B
% 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---"