Skip to content

mathMarkdownSyntaxExtension

const mathMarkdownSyntaxExtension: MarkdownConfig

Defined in: markdown/mathMarkdown.ts:145

$...$ and $$...$$ math delimiters (TeX-style). A literal dollar is \$.

Display math with blank lines inside is parsed as a block-level Math node (see parseBlock). Other $$...$$ spans use parseInline inside a paragraph.

The outer node is Math so the same tree can be used with LaTeX (MathJax), Typst, or other renderers in @prosemark/* packages.