Skip to content

Commit

Permalink
chore(citations): passthrough options (jackyzha0#1429)
Browse files Browse the repository at this point in the history
  • Loading branch information
aarnphm authored Oct 9, 2024
1 parent fe4b039 commit 8a95c86
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion quartz/plugins/transformers/citations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const Citations: QuartzTransformerPlugin<Partial<Options>> = (userOpts) =
const opts = { ...defaultOptions, ...userOpts }
return {
name: "Citations",
htmlPlugins() {
htmlPlugins(ctx) {
const plugins: PluggableList = []

// Add rehype-citation to the list of plugins
Expand All @@ -31,6 +31,8 @@ export const Citations: QuartzTransformerPlugin<Partial<Options>> = (userOpts) =
bibliography: opts.bibliographyFile,
suppressBibliography: opts.suppressBibliography,
linkCitations: opts.linkCitations,
csl: opts.csl,
lang: ctx.cfg.configuration.locale ?? "en-US",
},
])

Expand Down

0 comments on commit 8a95c86

Please sign in to comment.