Skip to content

Commit

Permalink
fix: add "holes" to marks
Browse files Browse the repository at this point in the history
  • Loading branch information
Sec-ant committed Feb 1, 2025
1 parent f4d48eb commit 51ebaaf
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/syntax-extensions/BoldExtension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class BoldExtension extends MarkExtension<Strong> {
},
],
toDOM(): DOMOutputSpec {
return ["strong"];
return ["strong", 0];
},
};
}
Expand Down
2 changes: 1 addition & 1 deletion src/syntax-extensions/InlineCodeExtension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class InlineCodeExtension extends MarkExtension<InlineCode> {
inclusive: false,
parseDOM: [{ tag: "code" }],
toDOM(): DOMOutputSpec {
return ["code"];
return ["code", 0];
},
};
}
Expand Down
2 changes: 1 addition & 1 deletion src/syntax-extensions/ItalicExtension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class ItalicExtension extends MarkExtension<Emphasis> {
},
],
toDOM(): DOMOutputSpec {
return ["em"];
return ["em", 0];
},
};
}
Expand Down
2 changes: 1 addition & 1 deletion src/syntax-extensions/LinkExtension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class LinkExtension extends MarkExtension<Link> {
},
],
toDOM(node: Mark): DOMOutputSpec {
return ["a", node.attrs];
return ["a", node.attrs, 0];
},
};
}
Expand Down
2 changes: 1 addition & 1 deletion src/syntax-extensions/StrikethroughExtension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class StrikethroughExtension extends MarkExtension<Delete> {
},
],
toDOM(): DOMOutputSpec {
return ["s"];
return ["s", 0];
},
};
}
Expand Down

0 comments on commit 51ebaaf

Please sign in to comment.