diff --git a/src/examples/site-demo.tsx b/src/examples/site-demo.tsx index 54002ae1..1406cc27 100644 --- a/src/examples/site-demo.tsx +++ b/src/examples/site-demo.tsx @@ -4,5 +4,5 @@ import markdown from './assets/live-demo-contents.md?raw' import { ALL_PLUGINS } from './_boilerplate' export function Basics() { - return + return console.log(md)} markdown={markdown} plugins={ALL_PLUGINS} /> } diff --git a/src/plugins/codeblock/CodeBlockNode.tsx b/src/plugins/codeblock/CodeBlockNode.tsx index 821ee29a..0957fb34 100644 --- a/src/plugins/codeblock/CodeBlockNode.tsx +++ b/src/plugins/codeblock/CodeBlockNode.tsx @@ -125,6 +125,10 @@ export class CodeBlockNode extends DecoratorNode { /> ) } + + isInline(): boolean { + return false + } } interface CodeBlockEditorContainerProps extends CodeBlockEditorProps {