Skip to content

Commit dc013b1

Browse files
typst template: import highlighting-definitions
for pandoc 3.8 next: investigate why this case enables syntax-highlighting
1 parent adb349d commit dc013b1

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

‎src/resources/formats/typst/pandoc/quarto/definitions.typ‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,3 +171,8 @@
171171
)
172172
}
173173

174+
$if(highlighting-definitions)$
175+
// syntax highlighting functions from skylighting:
176+
$highlighting-definitions$
177+
178+
$endif$

‎src/resources/formats/typst/pandoc/typst.template‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@
2222
kind: image
2323
): set figure.caption(position: $if(figure-caption-position)$$figure-caption-position$$else$bottom$endif$)
2424

25+
$if(highlighting-definitions)$
26+
// syntax highlighting functions from skylighting:
27+
$highlighting-definitions$
28+
29+
$endif$
2530
$if(template)$
2631
#import "$template$": conf
2732
$else$

0 commit comments

Comments
 (0)