From 8a95c865c86b94ad2b8553cfc6362233243984d1 Mon Sep 17 00:00:00 2001 From: Aaron Pham Date: Wed, 9 Oct 2024 14:14:44 -0400 Subject: [PATCH] chore(citations): passthrough options (#1429) --- quartz/plugins/transformers/citations.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/quartz/plugins/transformers/citations.ts b/quartz/plugins/transformers/citations.ts index 5242f37c5..dcac41b2e 100644 --- a/quartz/plugins/transformers/citations.ts +++ b/quartz/plugins/transformers/citations.ts @@ -21,7 +21,7 @@ export const Citations: QuartzTransformerPlugin> = (userOpts) = const opts = { ...defaultOptions, ...userOpts } return { name: "Citations", - htmlPlugins() { + htmlPlugins(ctx) { const plugins: PluggableList = [] // Add rehype-citation to the list of plugins @@ -31,6 +31,8 @@ export const Citations: QuartzTransformerPlugin> = (userOpts) = bibliography: opts.bibliographyFile, suppressBibliography: opts.suppressBibliography, linkCitations: opts.linkCitations, + csl: opts.csl, + lang: ctx.cfg.configuration.locale ?? "en-US", }, ])