@haklex/rich-renderer-katex 0.41.0 → 0.42.0
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/dist/index.mjs +2 -2
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -514,7 +514,7 @@ var KaTeXBlockEditNode = class KaTeXBlockEditNode extends KaTeXBlockNode {
|
|
|
514
514
|
return new KaTeXBlockEditNode(node.__equation, node.__key, node.getShouldAutoOpenOnMount());
|
|
515
515
|
}
|
|
516
516
|
static importJSON(_serializedNode) {
|
|
517
|
-
return new KaTeXBlockEditNode(_serializedNode.equation);
|
|
517
|
+
return new KaTeXBlockEditNode(_serializedNode.equation).updateFromJSON(_serializedNode);
|
|
518
518
|
}
|
|
519
519
|
decorate(_editor, _config) {
|
|
520
520
|
const rendererEl = createRendererDecoration("KaTeX", KaTeXRenderer, {
|
|
@@ -540,7 +540,7 @@ var KaTeXInlineEditNode = class KaTeXInlineEditNode extends KaTeXInlineNode {
|
|
|
540
540
|
const serializedNode = _serializedNode;
|
|
541
541
|
const node = new KaTeXInlineEditNode(serializedNode.equation);
|
|
542
542
|
if (serializedNode.color) node.setColor(serializedNode.color);
|
|
543
|
-
return node;
|
|
543
|
+
return node.updateFromJSON(_serializedNode);
|
|
544
544
|
}
|
|
545
545
|
decorate(_editor, _config) {
|
|
546
546
|
const rendererEl = createRendererDecoration("KaTeX", KaTeXRenderer, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haklex/rich-renderer-katex",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.42.0",
|
|
4
4
|
"description": "KaTeX math renderer for haklex rich editor",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"lucide-react": "^1.0.0",
|
|
43
43
|
"react": ">=19",
|
|
44
44
|
"react-dom": ">=19",
|
|
45
|
-
"@haklex/rich-editor
|
|
46
|
-
"@haklex/rich-
|
|
47
|
-
"@haklex/rich-
|
|
45
|
+
"@haklex/rich-editor": "^0.42.0",
|
|
46
|
+
"@haklex/rich-style-token": "^0.42.0",
|
|
47
|
+
"@haklex/rich-editor-ui": "^0.42.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependenciesMeta": {
|
|
50
50
|
"katex": {
|