Commit Graph
4 Commits
Author SHA1 Message Date
John MacFarlane b6339f9baa Typst writer: escape hyphens when needed.
Closes #11334.
2025-12-09 19:11:47 +01:00
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
John MacFarlane 40accba747 Typst writer: use ~ for nonbreaking space.
And escape literal `~`.
Closes #9010.
2023-08-21 11:29:27 -07:00
John MacFarlane 77e01242da Typst writer: escape //.
So it doesn't get interpreted as a comment.

Closes #8966.
2023-07-25 09:23:16 -06:00