We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8225736 commit c2cbc30Copy full SHA for c2cbc30
packages/core/src/blocks/Code/block.ts
@@ -102,6 +102,7 @@ export const createCodeBlockSpec = createBlockSpec(
102
const code = el.firstElementChild!;
103
104
return parser.parse(code, {
105
+ preserveWhitespace: "full",
106
topNode: schema.nodes["codeBlock"].create(),
107
}).content;
108
},
0 commit comments