Skip to content

Commit

Permalink
fix: disallow any type of marks in headings
Browse files Browse the repository at this point in the history
  • Loading branch information
dcshzj committed Jul 30, 2024
1 parent a482c3c commit 6add0ec
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export function TiptapEditor({ data, handleChange }: TiptapEditorProps) {
Gapcursor,
HardBreak,
Heading.extend({
marks: "",
// NOTE: Have to override the default input rules
// because we should map the number of `#` into
// a h<num # + 1>.
Expand Down

0 comments on commit 6add0ec

Please sign in to comment.