Skip to content

Commit 26cdeae

Browse files
Fixed code marks throwing error (#160)
1 parent 28f8e03 commit 26cdeae

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/core/src/api/nodeConversions/nodeConversions.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const toggleStyles = new Set<ToggledStyles>([
2424
"italic",
2525
"underline",
2626
"strike",
27+
"code",
2728
]);
2829
const colorStyles = new Set<ColorStyles>(["textColor", "backgroundColor"]);
2930

packages/core/src/extensions/Blocks/api/inlineContentTypes.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ export type Styles = {
33
italic?: true;
44
underline?: true;
55
strike?: true;
6+
code?: true;
67
textColor?: string;
78
backgroundColor?: string;
89
};

0 commit comments

Comments
 (0)