Latex: let the site choose KaTeX's output mode
All checks were successful
Engine CI / build-and-test (docker) (pull_request) Successful in 2m7s
All checks were successful
Engine CI / build-and-test (docker) (pull_request) Successful in 2m7s
katexOptions omitted `output`, though the option spread already honours it. A site can now ask for "htmlAndMathml" so screen readers get MathML; the default stays "html". Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
8bf428c6ef
commit
02bc0e0419
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue