ReadonlyinsertInline formula at the caret; a selected run of text becomes the source.
ReadonlyinsertDisplay formula as its own block, replacing an empty paragraph; numbered when asked.
ReadonlyrenderDraw LaTeX as the document does, for the equation dialog's preview.
ReadonlysetApply edited source to the formula at the selection.
ReadonlysetNumber the display formula at the selection, or stop.
The command bundle
@trevixal/uiis handed so its Insert menu and equation dialog can drive math without importing this package (seetableUICommands):createEditorUI(editor, { mathCommands: mathUICommands() }).