@techie_doubts/editor-plugin-katex
v3.1.0
Published
TOAST UI Editor : KaTeX Plugin
Maintainers
Readme
TOAST UI Editor : KaTeX Plugin
This plugin adds KaTeX rendering for
$$latex ... $$blocks and inline$...$math.
Install
npm install --save @techie_doubts/editor-plugin-katexUsage
import { Editor } from '@techie_doubts/tui.editor.2026';
import katexPlugin from '@techie_doubts/editor-plugin-katex';
const editor = new Editor({
el: document.querySelector('#editor'),
initialEditType: 'markdown',
previewStyle: 'vertical',
plugins: [katexPlugin],
});Notes
- Inline rendering in WYSIWYG uses decoration overlays only (no nodeviews or document mutation).
- KaTeX stylesheet is required for proper rendering.
