@verso-editor/extension-math
v1.0.0
Published
Math / LaTeX extension for Verso Editor. Renders formulas using [KaTeX](https://katex.org/).
Downloads
21
Readme
@verso-editor/extension-math
Math / LaTeX extension for Verso Editor. Renders formulas using KaTeX.
Features
- Inline math (
$...$) and block math ($$...$$) via InputRules - KaTeX rendering in a custom NodeView
- Click-to-edit LaTeX source
Install
pnpm add @verso-editor/extension-mathUsage
import { MathExtension, createMathNodeView } from '@verso-editor/extension-math'The extension is included in createStarterKit(). Type $E=mc^2$ for inline math or $$\frac{a}{b}$$ for block math.
