diff --git a/shared/editor/lib/markdown/rules.ts b/shared/editor/lib/markdown/rules.ts index d0259e409f..dd8948f320 100644 --- a/shared/editor/lib/markdown/rules.ts +++ b/shared/editor/lib/markdown/rules.ts @@ -32,6 +32,9 @@ export default function makeRules({ if (!schema?.nodes.hr) { markdownIt.disable("hr"); } + if (!schema?.nodes.heading) { + markdownIt.disable("heading"); + } plugins.forEach((plugin) => markdownIt.use(plugin)); return markdownIt;