Every extension
mathKit
Both nodes, sharing one renderer.
Adding it
import { createEditor, document, paragraph, text, mathKit } from '@matrajs/core'
const editor = createEditor({
extensions: [document, paragraph, text, mathKit({ … })],
element: document.querySelector('#editor'),
})
There is no separate package · mathKit is already in @matrajs/core, and an extension you do not import is not in your bundle. document, paragraph and text are the floor every document needs.
Commands
-
editor.commands.insertInlineMath() -
editor.commands.setMath()
Attributes
-
latex
HTML
-
Parses
span[data-math] -
Renders
span