summaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2024-01-29 09:29:52 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2024-01-29 10:53:51 -0800
commitb6ac32b1161eae21bbb9525415ed64d11adf7a54 (patch)
tree876274f85b6e911dcf227b74dc5a04b9e99bc476 /test/command
parentd90444d4c869598434b3d4bee8386b16ff57b6f6 (diff)
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.
Diffstat (limited to 'test/command')
-rw-r--r--test/command/9386.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/command/9386.md b/test/command/9386.md
new file mode 100644
index 000000000..043fb3090
--- /dev/null
+++ b/test/command/9386.md
@@ -0,0 +1,17 @@
+```
+% 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
+```