diff --git a/frontend/src/app/globals.css b/frontend/src/app/globals.css index 733aa3e..8b1bb97 100644 --- a/frontend/src/app/globals.css +++ b/frontend/src/app/globals.css @@ -126,11 +126,13 @@ @apply mb-2; } - .reading-content strong { + .reading-content strong, + .reading-content b { @apply font-semibold theme-header; } - .reading-content em { + .reading-content em, + .reading-content i { @apply italic; } @@ -206,11 +208,13 @@ @apply mb-2; } - .editor-content strong { + .editor-content strong, + .editor-content b { @apply font-semibold theme-header; } - .editor-content em { + .editor-content em, + .editor-content i { @apply italic; } diff --git a/frontend/src/components/stories/SlateEditor.tsx b/frontend/src/components/stories/SlateEditor.tsx index be58243..0a8332c 100644 --- a/frontend/src/components/stories/SlateEditor.tsx +++ b/frontend/src/components/stories/SlateEditor.tsx @@ -5,7 +5,6 @@ import { createEditor, Descendant, Element as SlateElement, - Node as SlateNode, Transforms, Editor, Range @@ -311,13 +310,11 @@ const withImages = (editor: ReactEditor) => { editor.insertData = (data) => { const html = data.getData('text/html'); - if (html && html.includes(' { Transforms.insertNodes(editor, node); });