diff --git a/src/lib/RichText.svelte b/src/lib/RichText.svelte index 599558e..ebb71fa 100644 --- a/src/lib/RichText.svelte +++ b/src/lib/RichText.svelte @@ -51,6 +51,12 @@ color: var(--color) } + :global(.markup-content a, .markup-content p, .markup-content span) { + overflow-wrap: anywhere; + word-wrap: anywhere; + hyphens: auto; + } + :global(.markup-content img) { object-fit: contain; width: 100%;