aboutsummaryrefslogtreecommitdiff
path: root/test/writer.typst
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2023-08-09 11:37:39 -0700
committerJohn MacFarlane <[email protected]>2023-08-09 11:38:38 -0700
commitcc371a9485241db3e0101180432e2122d023a9bd (patch)
tree2882f2d10e8b17a78fef6282dca5e7a976619183 /test/writer.typst
parente611edb7d86af665830a34bb3ee2ff049eda0976 (diff)
Typst writer: put the label in right place for Div, use `#block`.
Closes #8991. Previously we were putting the label at the beginning of the Div's contents, but according to the documentation such a label gets attached to the *preceding* element. We now use an explicit `#block` and add the label at the end.
Diffstat (limited to 'test/writer.typst')
-rw-r--r--test/writer.typst18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/writer.typst b/test/writer.typst
index 14658c489..d645d11b2 100644
--- a/test/writer.typst
+++ b/test/writer.typst
@@ -497,20 +497,32 @@ orange fruit
<html-blocks>
Simple block on one line:
+#block[
foo
+]
And nested without indentation:
+#block[
+#block[
+#block[
foo
+]
+]
+#block[
bar
+]
+]
Interpreted markdown in a table:
This is #emph[emphasized]
And this is #strong[strong]
Here’s a simple block:
+#block[
foo
+]
This should be a code block, though:
```
@@ -527,7 +539,13 @@ As should this:
Now, nested:
+#block[
+#block[
+#block[
foo
+]
+]
+]
This should just be an HTML comment:
Multiline: