pub enum LineFlow {
Fold,
Preserve,
}Expand description
How the WYSIWYG view treats a soft break — a bare newline inside a
paragraph. An axis of its own, orthogonal to MarkupMode (which governs
inline-markup delimiters) and to View: any reveal preference pairs with
either flow. The renderer consults it when it lays a block’s inline content
into visual rows.
Variants§
Fold
A soft break folds into a space and the paragraph reflows to the viewport width — flowing prose, where the source’s line wrapping is insignificant. The default, and what Diaryx ships.
Preserve
A soft break renders as a line break exactly where it was written, so the author’s source line structure shows on screen unchanged — the mode for people who lay out their prose deliberately (one sentence or clause per line, semantic line breaks). The break is still a soft break in the source; only its rendering changes.