Skip to content

Commit ab0bbd6

Browse files
author
Rajat
committed
Fixing codemirror rendering
1 parent 5c7d738 commit ab0bbd6

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

packages/page-blocks/src/components/text-renderer.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ export function TextRenderer({ json, className, theme }: TextRendererProps) {
7272
</Header3>
7373
);
7474
},
75+
codeMirror: ({ children }) => {
76+
return (
77+
<pre>
78+
<code>{children}</code>
79+
</pre>
80+
);
81+
},
7582
},
7683
markMapping: {
7784
link: ({ mark, children, node }) => {

0 commit comments

Comments
 (0)