mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-10-03 12:10:34 +00:00
Fix soft-break in the document (#120)
This commit is contained in:
@@ -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}
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user