LatexMarkdownEditorOptions
Defined in: latex/lib/main.ts:54
Properties
Section titled “Properties”mathJaxLoadMode?
Section titled “mathJaxLoadMode?”
optionalmathJaxLoadMode?:MathJaxLoadMode
Defined in: latex/lib/main.ts:69
How MathJax is initialized. Defaults to url-import.
mathJaxPackageUrl?
Section titled “mathJaxPackageUrl?”
optionalmathJaxPackageUrl?: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).
output?
Section titled “output?”
optionaloutput?: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.
renderCacheSize?
Section titled “renderCacheSize?”
optionalrenderCacheSize?: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.
Default
Section titled “Default”128