Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: math-display -> math-block

thecodrr3c78a35ade9f
diff --git a/packages/editor/src/extensions/math/math-block.ts b/packages/editor/src/extensions/math/math-block.ts
index 288a03d28..44f18cdd3 100644
--- a/packages/editor/src/extensions/math/math-block.ts
+++ b/packages/editor/src/extensions/math/math-block.ts
@@ -24,7 +24,7 @@ export const MathBlock = Node.create({
parseHTML() {
return [
{
- tag: `div[class*='math-display']`, // important!
+ tag: `div[class*='math-block']`, // important!
},
];
},
@@ -32,7 +32,7 @@ export const MathBlock = Node.create({
renderHTML({ HTMLAttributes }) {
return [
"div",
- mergeAttributes({ class: "math-display math-node" }, HTMLAttributes),
+ mergeAttributes({ class: "math-block math-node" }, HTMLAttributes),
0,
];
},