Merge pull request 'Latex: let the site choose KaTeX's output mode' (#5) from void/katex-output-option into main
All checks were successful
Engine CI / build-and-test (docker) (push) Successful in 2m32s

This commit is contained in:
Void 2026-11-10 06:19:51 +00:00
commit 3ec9f4b424

View file

@ -12,7 +12,8 @@ import { Options as TypstOptions } from "@myriaddreamin/rehype-typst"
interface Options {
renderEngine: "katex" | "mathjax" | "typst"
customMacros: MacroType
katexOptions: Omit<KatexOptions, "macros" | "output">
// `output` defaults to "html"; "htmlAndMathml" adds MathML for screen readers (KaTeX hides it visually).
katexOptions: Omit<KatexOptions, "macros">
mathJaxOptions: Omit<MathjaxOptions, "macros">
typstOptions: TypstOptions
}