Docs
Equation
Equation
Enables the insertion and rendering of LaTeX equations in your editor.
Installation
npm install @udecode/plate-math
Usage
import { EquationPlugin, InlineEquationPlugin } from '@udecode/plate-math/react';
const plugins = [
// ...otherPlugins,
EquationPlugin,
InlineEquationPlugin,
]
const components = {
// ...otherComponents,
[EquationPlugin.key]: EquationElement,
[InlineEquationPlugin.key]: InlineEquationElement,
}
- EquationElement (Plus)
- InlineEquationElement (Plus)
Examples
Plate UI
Work in progress.
Plate Plus
- Mark text as equation from the toolbar
- Insert equation from slash command
- Beautifully crafted UI
Plugins
EquationPlugin
Block equation element plugin.
InlineEquationPlugin
Inline equation element plugin.
Transforms
editor.tf.insert.equation
Inserts an empty block equation.
Parameters
Collapse all
Options for the insert nodes transform.
editor.tf.insert.inlineEquation
Inserts an inline equation.
Parameters
Collapse all
The LaTeX expression to insert. If not provided, an empty equation will be inserted.
Options for the insert nodes transform.
Types
TEquationElement
interface TEquationElement extends TElement {
texExpression: string;
}
Build your editor even faster
Complete, deployable AI-powered template with backend.
All components included.
Customizable and extensible.
Get all-accessCustomizable and extensible.