Skip to content

Commit

Permalink
fix: italic use tag "i" #8
Browse files Browse the repository at this point in the history
  • Loading branch information
aolyang committed Dec 16, 2024
1 parent 8d30e31 commit ed7aa01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/src/utils/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const extensions: Extensions = [
LineHeight,
Color,
Highlight.configure({ multicolor: true }),
Italic,
Italic.extend({ renderHTML: ({ HTMLAttributes }) => ["i", HTMLAttributes, 0] }),
Strike,
Underline,
Indent,
Expand Down

0 comments on commit ed7aa01

Please sign in to comment.