diff options
| author | John MacFarlane <[email protected]> | 2024-01-29 09:29:52 -0800 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2024-01-29 10:53:51 -0800 |
| commit | b6ac32b1161eae21bbb9525415ed64d11adf7a54 (patch) | |
| tree | 876274f85b6e911dcf227b74dc5a04b9e99bc476 /test/writer.typst | |
| parent | d90444d4c869598434b3d4bee8386b16ff57b6f6 (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/writer.typst')
| -rw-r--r-- | test/writer.typst | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/writer.typst b/test/writer.typst index bd3f62b33..f7883a0e8 100644 --- a/test/writer.typst +++ b/test/writer.typst @@ -634,9 +634,9 @@ Ellipses…and…and…. These shouldn’t be math: - To get the famous equation, write `$e = mc^2$`. -- \$22,000 is a #emph[lot] of money. So is \$34,000. \(It worked if "lot" is +- \$22,000 is a #emph[lot] of money. So is \$34,000. (It worked if "lot" is emphasized.) -- Shoes \(\$20) and socks \(\$5). +- Shoes (\$20) and socks (\$5). - Escaped `$`: \$73 #emph[this should be emphasized] 23\$. Here’s a LaTeX table: @@ -679,7 +679,7 @@ Left bracket: \[ Right bracket: \] -Left paren: \( +Left paren: ( Right paren: ) @@ -778,7 +778,7 @@ or here: <http://example.com/> = Images <images> -From "Voyage dans la Lune" by Georges Melies \(1902): +From "Voyage dans la Lune" by Georges Melies (1902): #figure([#box(width: 150.0pt, image("lalune.jpg"));], caption: [ @@ -796,8 +796,8 @@ Here is a footnote reference,#footnote[Here is the footnote. It can go anywhere after the footnote reference. It need not be placed at the end of the document.] and another.#footnote[Here’s the long note. This one contains multiple blocks. -Subsequent blocks are indented to show that they belong to the footnote \(as -with list items). +Subsequent blocks are indented to show that they belong to the footnote (as with +list items). ``` { <code> } |
