Skip to content

Commit

Permalink
Fix bold+italic rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
kazcw committed May 22, 2024
1 parent f0c9856 commit 44d37fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/gui2/src/components/lexical/MarkdownEditorImpl.vue
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,8 @@ const { editor } = useLexical(contentElement, 'MarkdownEditor', [
.LexicalContent :deep(.lexical-strikethrough) {
text-decoration: line-through;
}
.LexicalContent :deep(.lexical-italic) {
font-style: italic;
}
</style>
1 change: 1 addition & 0 deletions app/gui2/src/components/lexical/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export function useLexical(
theme: {
text: {
strikethrough: 'lexical-strikethrough',
italic: 'lexical-italic',
},
},
nodes: [...nodes],
Expand Down

0 comments on commit 44d37fd

Please sign in to comment.