summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorWenzhuo Liu <mgt@oi-wiki.org>2024-05-17 16:35:51 +0800
committerLaurenz <laurmaedje@gmail.com>2024-05-17 15:34:20 +0200
commitc2eddff485d1d13d5077d02a9593bd8d3656e702 (patch)
tree55d70c5f1d3b0abef6b4446260ca043aa9ef469a /tests
parentba1ae1c9a28c22fda1c57a5b12db2e5e91eb1b4a (diff)
Fix raw block has extra space when end with backtick (#4162)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/issue-3820-raw-space-when-end-with-backtick.pngbin0 -> 351 bytes
-rw-r--r--tests/suite/text/raw.typ15
2 files changed, 14 insertions, 1 deletions
diff --git a/tests/ref/issue-3820-raw-space-when-end-with-backtick.png b/tests/ref/issue-3820-raw-space-when-end-with-backtick.png
new file mode 100644
index 00000000..1ba3fb18
--- /dev/null
+++ b/tests/ref/issue-3820-raw-space-when-end-with-backtick.png
Binary files differ
diff --git a/tests/suite/text/raw.typ b/tests/suite/text/raw.typ
index dce77fdb..6a3ea6bd 100644
--- a/tests/suite/text/raw.typ
+++ b/tests/suite/text/raw.typ
@@ -624,7 +624,20 @@ fn main() {
~~~~The~spaces~on~this~line~shrink
+--- issue-3820-raw-space-when-end-with-backtick ---
+```typ
+`code`
+```
+
+ ```typ
+ `code`
+ ```
+
--- raw-unclosed ---
-// Unterminated.
+// Test unterminated raw text.
+//
+// Note: This test should be the final one in the file because it messes up
+// syntax highlighting.
+//
// Error: 1-2:1 unclosed raw text
`endless