imzbf / md-editor-v3

Markdown editor for vue3, developed in jsx and typescript, dark theme、beautify content by prettier、render articles directly、paste or clip the picture and upload it...
https://imzbf.github.io/md-editor-v3
MIT License
1.63k stars 156 forks source link

wrong word brakes #511

Closed blockiindahood closed 6 months ago

blockiindahood commented 6 months ago

Describe the issue

The text is previewed with cutoff words (wrong word breaks), not like in the input.

Bildschirmfoto 2024-05-09 um 16 13 04

Is there a way to fix this? I couldn't find anything in the docs.

Procedure version

latest

Reproduction link

No response

imzbf commented 6 months ago

Just adjust the style of the content area

.md-editor-preview p {
    word-break: break-word;
}
blockiindahood commented 6 months ago

didn't thought about using plain css at that moment tbh, but works now, thank you!