Skip to content

Commit 92834e8

Browse files
fix: allow change colors in codeblock
1 parent 0f10265 commit 92834e8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/web/pmPlugins/StripMarksInCodeBlockPlugin.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ export const StripMarksInCodeBlockPlugin = Extension.create({
1818
newState.doc.descendants((node, pos) => {
1919
if (node.type.name === 'codeBlock') {
2020
allMarks.forEach((markType) => {
21+
if (markType.name === 'customStyle') {
22+
return;
23+
}
2124
tr.removeMark(pos + 1, pos + node.nodeSize - 1, markType);
2225
});
2326
return false;

0 commit comments

Comments
 (0)