aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2025-09-28 15:36:21 +0200
committerJohn MacFarlane <[email protected]>2025-09-28 15:36:21 +0200
commit3ffd47af68853662fc613c3ce186e60b60d95d43 (patch)
tree5448624242975f4cdfd750dfa38bf9b5878be227 /data
parentc72ff7393c93ad838cd79d2c6c69fe92f07388ea (diff)
Typst writer: Fix syntax highlighting.
See #11171. Previously the native typst highlighting was always used, regardless of the setting of `--syntax-highlighting`. With this change, `--syntax-highlighting=none` and `--syntax-highlighting=<style name>` (with skylighting) will work. Completes #10525.
Diffstat (limited to 'data')
-rw-r--r--data/templates/default.typst5
1 files changed, 5 insertions, 0 deletions
diff --git a/data/templates/default.typst b/data/templates/default.typst
index 4c75fd0f4..651bc6d9c 100644
--- a/data/templates/default.typst
+++ b/data/templates/default.typst
@@ -22,6 +22,11 @@
kind: image
): set figure.caption(position: $if(figure-caption-position)$$figure-caption-position$$else$bottom$endif$)
+$if(highlighting-definitions)$
+// syntax highlighting functions from skylighting:
+$highlighting-definitions$
+
+$endif$
$if(template)$
#import "$template$": conf
$else$