Fixing code style by running prettier with --write

This commit is contained in:
Kristoffer Schneider 2025-08-05 22:14:22 +02:00
parent aa68f18e9d
commit 3bf798b51f

View File

@ -29,9 +29,12 @@ export const Citations: QuartzTransformerPlugin<Partial<Options>> = (userOpts) =
// https://github.com/citation-style-language/locales // https://github.com/citation-style-language/locales
// thus, we optimistically assume there is indeed an appropriate // thus, we optimistically assume there is indeed an appropriate
// locale available and simply create the lang url-string // locale available and simply create the lang url-string
let lang: string = "en-US"; let lang: string = "en-US"
if (ctx.cfg.configuration.locale !== null && ctx.cfg.configuration.locale !== undefined) { if (ctx.cfg.configuration.locale !== null && ctx.cfg.configuration.locale !== undefined) {
lang = "https://raw.githubusercontent.com/citation-style-language/locales/refs/heads/master/locales-" + ctx.cfg.configuration.locale + '.xml'; lang =
"https://raw.githubusercontent.com/citation-style-language/locales/refs/heads/master/locales-" +
ctx.cfg.configuration.locale +
".xml"
} }
// Add rehype-citation to the list of plugins // Add rehype-citation to the list of plugins
plugins.push([ plugins.push([