Skip to content

Commit 5f9c2c6

Browse files
committed
typst PDF: highlight raw inline text in light grey
for #509 [ci skip]
1 parent c2c5a7f commit 5f9c2c6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

typst-preamble.typ

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@
1111
it
1212
}
1313

14+
// Highlight raw texts with a grey background, don't touche code blocks.
15+
// https://github.com/typst/typst/discussions/2911
16+
#show raw.where(block: false): it => box(
17+
fill: rgb("ddd"),
18+
outset: 2pt,
19+
radius: 5pt,
20+
it
21+
)
22+
1423
#image("orly-cover.png", width: 90%),
1524

1625
#pagebreak(

0 commit comments

Comments
 (0)