aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2025-03-04 23:25:08 -0800
committerJohn MacFarlane <[email protected]>2025-03-04 23:25:48 -0800
commitb58381a0d498a3c6a1e45f69807366e8674448d7 (patch)
tree9437be22077848149f24b17d371a10be86defa04 /src
parent0d9fbc9410da119c253ace94cfbb41ef3f9a12f2 (diff)
Typst writer: ensure that `citation-style` works as well as `csl`.
Closes #10661.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Writers/Typst.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Writers/Typst.hs b/src/Text/Pandoc/Writers/Typst.hs
index fdfad0f20..a3615e7a0 100644
--- a/src/Text/Pandoc/Writers/Typst.hs
+++ b/src/Text/Pandoc/Writers/Typst.hs
@@ -85,6 +85,7 @@ pandocToTypst options (Pandoc meta blocks) = do
Right l ->
resetField "lang" (langLanguage l) .
maybe id (resetField "region") (langRegion l))
+ $ defField "csl" (lookupMetaString "citation-style" meta) -- #10661
$ defField "smart" (isEnabled Ext_smart options)
$ defField "toc-depth" (tshow $ writerTOCDepth options)
$ defField "figure-caption-position"