Skip to content

Commit 940b5e4

Browse files
fix: custom color extension markdown rule added now (#6471)
1 parent 6003c88 commit 940b5e4

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

packages/editor/src/core/extensions/custom-color.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,19 @@ export const CustomColorExtension = Mark.create({
9393
};
9494
},
9595

96+
addStorage() {
97+
return {
98+
markdown: {
99+
serialize: {
100+
open: "",
101+
close: "",
102+
mixable: true,
103+
expelEnclosingWhitespace: true,
104+
},
105+
},
106+
};
107+
},
108+
96109
parseHTML() {
97110
return [
98111
{

0 commit comments

Comments
 (0)