Skip to content

Build your personal knowledge base with Trilium Notes

feat(math/display): allow inserting in display in a list

Elian Doran6231df7f0e9d
diff --git a/src/mathediting.ts b/src/mathediting.ts
index 2958ad7892..83a87e1ab7 100644
--- a/src/mathediting.ts
+++ b/src/mathediting.ts
@@ -58,9 +58,7 @@ export default class MathEditing extends Plugin {
} );
schema.register( 'mathtex-display', {
- allowWhere: '$block',
- isInline: false,
- isObject: true,
+ inheritAllFrom: '$blockObject',
allowAttributes: [ 'equation', 'type', 'display' ]
} );
}