@techie_doubts/editor-plugin-katex 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,28 @@
1
+ # TOAST UI Editor : KaTeX Plugin
2
+
3
+ > This plugin adds KaTeX rendering for `$$latex ... $$` blocks and inline `$...$` math.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install --save @techie_doubts/editor-plugin-katex
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```js
14
+ import { Editor } from '@techie_doubts/tui.editor.2026';
15
+ import katexPlugin from '@techie_doubts/editor-plugin-katex';
16
+
17
+ const editor = new Editor({
18
+ el: document.querySelector('#editor'),
19
+ initialEditType: 'markdown',
20
+ previewStyle: 'vertical',
21
+ plugins: [katexPlugin],
22
+ });
23
+ ```
24
+
25
+ ## Notes
26
+
27
+ - Inline rendering in WYSIWYG uses decoration overlays only (no nodeviews or document mutation).
28
+ - KaTeX stylesheet is required for proper rendering.