Files
John MacFarlane b6ac32b116 Typst writer escaping improvements.
We no longer escape `(`. The reason we did this before (#9137)
has been addressed in another way (#9252).

We only escape `=`, `+`, `-` at the beginning of a line.

We now also escape `/` at the beginning of a line.

This should reduce unnecessary escapes.

Closes #9386.
2024-01-29 10:53:51 -08:00

488 B

% pandoc -t typst --wrap=preserve
A string of text that is long enough that after 73 chars that includes a
/ slash creates a newline
^D
A string of text that is long enough that after 73 chars that includes a
\/ slash creates a newline
% pandoc -t typst --wrap=preserve
A string of text that is long enough that after 73 chars that includes
a / slash creates a newline
^D
A string of text that is long enough that after 73 chars that includes
a / slash creates a newline