Skip to content

prosekit/extensions/math

Options for defineMath.

renderMathBlock: RenderMathBlock

The function to render the math block.

renderMathInline: RenderMathInline

The function to render the math inline.

type MathExtension = Union<[MathInlineExtension, MathBlockExtension]>

function defineMathBlock(options: MathBlockOptions): MathBlockExtension

Defines node mathBlock and related functionalities.


function defineMathInline(options: MathInlineOptions): MathInlineExtension

Defines node mathInline and related functionalities.


function defineMathPlugin(): PlainExtension


function defineMath(options: MathOptions): MathExtension