latexMarkdownEditorExtensions
latexMarkdownEditorExtensions(
options?):Extension[]
Defined in: latex/lib/main.ts:719
CodeMirror extensions that replace core Math syntax nodes with rendered
MathJax output.
Parameters
Section titled “Parameters”options?
Section titled “options?”LatexMarkdownEditorOptions = {}
Returns
Section titled “Returns”Extension[]
Remarks
Section titled “Remarks”Markdown parser: widgets attach only to Math nodes. Enable math in the
Markdown config with prosemarkMarkdownSyntaxExtensions (includes
mathMarkdownSyntaxExtension) from @prosemark/core, or add
mathMarkdownSyntaxExtension from @prosemark/core or
latexMathMarkdownSyntaxExtension from this package to
markdown({ extensions: [...] }). Without that, $...$ / $$...$$ are not
parsed as math and these extensions have nothing to render.
Add latexMathNestedHighlightExtension in the same extensions list
for nested TeX (stexMath) highlighting inside MathFormula. Add
latexMathSyntaxHighlighting (via latexMarkdownSyntaxTheme)
for delimiter/formula source coloring.