dauntless/quartz/plugins/transformers
derfalx c2bea8a4c4
fix(citation): Language parameter for non en-US settings (#2075)
* Fix language parameter of the citation plugin for non en-US settings

Per default the rehype-citation project only supports en-US, as
explained here: https://github.com/timlrx/rehype-citation/issues/12
For other languages one can provide a locale-file either by passing
its path or providing an URL. The following repository contains locale
files for multiple languages. So, these are used, in case a non en-US
language is used in quarzt. But this optimistically assumes there is
indeed an according locale file.

In summary this solves the problem only partially, since there are
still some languages which will not work properly.

* Fixing code style by running prettier with --write

* Excluding `en-US` locales from the new behaviour.

* Removing unnecessary `null` und `undefined` check.

* Update quartz/plugins/transformers/citations.ts

* Update quartz/plugins/transformers/citations.ts

* Update quartz/plugins/transformers/citations.ts

---------

Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
2026-01-08 09:30:42 +08:00
..
citations.ts fix(citation): Language parameter for non en-US settings (#2075) 2026-01-08 09:30:42 +08:00
description.ts fix(description): calculate description properly when first sentence is longer than max 2025-03-13 14:22:11 -07:00
frontmatter.ts fix: modified time data of frontmatter didnt loaded. (#2165) 2025-10-16 09:10:25 -07:00
gfm.ts chore: ts fixes 2024-08-08 18:28:13 -07:00
index.ts feat(markdown): Roam Research flavour (#985) 2024-09-11 03:29:07 -04:00
lastmod.ts fix: tz-less date parse in local tz instead of utc (closes #1615) 2025-06-01 22:42:37 -07:00
latex.ts fix: pass mathjax macros to rehype correctly (#2218) 2025-12-06 22:51:37 -05:00
linebreaks.ts feat: plugin for remark-breaks (#467) 2023-09-10 23:11:42 -07:00
links.ts fix(api): adapt to updated API parameter format from (#2185) 2025-10-31 16:59:46 -07:00
ofm.ts fix(callouts)!: match callout DOM to Obsidian (#2104) 2025-09-21 19:14:03 +02:00
oxhugofm.ts fix(oxhugo): Do not discard embedded HTML (#2151) 2025-10-02 10:51:40 -07:00
roam.ts perf: incremental rebuild (--fastRebuild v2 but default) (#1841) 2025-03-16 14:17:31 -07:00
syntax.ts chore: ts fixes 2024-08-08 18:28:13 -07:00
toc.ts chore: ts fixes 2024-08-08 18:28:13 -07:00