Skip to content

LatexMarkdownEditorOptions

Defined in: latex/lib/main.ts:54

optional mathJaxLoadMode?: MathJaxLoadMode

Defined in: latex/lib/main.ts:69

How MathJax is initialized. Defaults to url-import.


optional mathJaxPackageUrl?: string

Defined in: latex/lib/main.ts:84

When mathJaxLoadMode is url-import (default): base URL for MathJax’s package root (the folder that contains tex-svg.js / tex-chtml.js), used for loader.paths.mathjax and for loading the startup bundle. Must be an absolute URL the browser can load (e.g. https://… or a same-origin path such as https://my.app/assets/mathjax or a VS Code webview vscode-resource: URL). No trailing slash is required.

Omit to use the default jsDelivr URL for the version constant in this package (you are not required to match that version if you pass your own URL).

When mathJaxLoadMode is static-import, this option is ignored (configure window.MathJax yourself; see preconfigureMathJaxLoader).


optional output?: LatexMathOutput

Defined in: latex/lib/main.ts:59

How formulas are rendered. svg uses MathJax SVG (tex-svg-nofont.js). html uses CHTML (tex-chtml-nofont.js) when SVG is problematic.


optional renderCacheSize?: number

Defined in: latex/lib/main.ts:65

Max entries for the in-memory render cache (cloned DOM per hit). Helps when the same formula is re-folded while moving the caret. Set to 0 to disable.

128