Skip to content
This repository was archived by the owner on Sep 27, 2025. It is now read-only.

Commit 883291d

Browse files
fix: do not xlink codeblocks
1 parent 84d555f commit 883291d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/xlink.typ

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
}
2020

2121
#let process(body, ..args) = {
22+
let nonzws = "[^" + sym.zws + "]"
2223
show: hacks.only-main(
23-
regex("\[..+?\]"),
24+
regex("\[" + nonzws + ".+?\]"),
2425
it => {
2526
let it = it.text.slice(1, -1)
2627
xlink(it)

0 commit comments

Comments
 (0)