summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/text/raw.pngbin33809 -> 21607 bytes
-rw-r--r--tests/typ/text/raw.typ20
2 files changed, 20 insertions, 0 deletions
diff --git a/tests/ref/text/raw.png b/tests/ref/text/raw.png
index 845f6c21..09912afc 100644
--- a/tests/ref/text/raw.png
+++ b/tests/ref/text/raw.png
Binary files differ
diff --git a/tests/typ/text/raw.typ b/tests/typ/text/raw.typ
index 8cf5ee7e..525988ec 100644
--- a/tests/typ/text/raw.typ
+++ b/tests/typ/text/raw.typ
@@ -5,6 +5,10 @@
`A``B`
---
+// Empty raw block.
+Empty raw block:``.
+
+---
// Typst syntax inside.
```typ #let x = 1``` \
```typ #f(1)```
@@ -49,6 +53,22 @@ The keyword ```rust let```.
```
---
+// Do not take empty lines into account when computing dedent.
+```
+ A
+
+ B
+```
+
+---
+// Take last line into account when computing dedent.
+```
+ A
+
+ B
+ ```
+
+---
// Text show rule
#show raw: set text(font: "Roboto")
`Roboto`