Files
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

362 B
Raw Permalink Blame History

% 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
“dont 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---"