Fix soft-break in the document (#120)

This commit is contained in:
Samy Pessé
2024-01-26 11:08:39 +01:00
committed by GitHub
parent 730b444403
commit 7045675eda
+7 -1
View File
@@ -49,7 +49,13 @@ export function DocumentView(
document={document}
ancestorBlocks={[]}
blockStyle={blockStyle}
style={[style]}
style={[
style,
// Preserve adjacent whitespace and new lines.
'whitespace-pre-wrap',
// Allow words to break if they are too long.
'break-words',
]}
context={context}
/>
);