iwe
Added
preserve_newlinesconfig option keeps each line of a paragraph on its own line duringnormalizeinstead of joining them with spaces, so source files written with one sentence per line (semantic line breaks) survive formatting (default off).
Fixed
normalizeno longer collapses nested or multi-paragraph djot list items onto one line; the blank line that keeps them separate is preserved so the list survives repeated runs.- Commands no longer crash on a djot document that contains a reference link definition or a definition list.
normalizekeeps the word boundary at a hard line break instead of running the surrounding words together.normalizepreserves djot task list checkboxes (- [ ]/- [x]), display math ($$), and autolinks (<url>) instead of mangling them.
iwes
Added
preserve_newlinesconfig option keeps each line of a paragraph on its own line when formatting instead of joining them with spaces, so documents written with one sentence per line (semantic line breaks) survive format-on-save (default off).
Fixed
- Formatting a djot document no longer collapses nested or multi-paragraph list items into the parent item; the blank line separating them is kept so the list structure survives format-on-save.
- The server no longer crashes when parsing a djot document that contains a reference link definition or a definition list.
- Formatting keeps the word boundary at a hard line break instead of running the surrounding words together.
- Formatting preserves djot task list checkboxes (
- [ ]/- [x]), display math ($$), and autolinks (<url>) instead of mangling them.
liwe
Added
FormattingOptionsgains apreserve_newlinesfield (defaultfalse); when enabled, a soft line break inside a paragraph is read asDocumentInline::SoftBreakand written back as a plain newline instead of being collapsed into a space, so the source line layout survives normalization.
Changed
Inline::Mathnow carries aMathType(Inline::Math(MathType, String)), distinguishing inline from display math.
Fixed
- The djot writer now leaves a blank line before a nested list or any second block inside a list item, so list items with sub-lists or extra paragraphs round-trip instead of collapsing into the item's first line.
- The djot reader no longer panics on a document that contains a reference link definition or a definition list; the orphaned text is dropped instead of crashing the parser.
- A hard line break now becomes a space when line breaks aren't preserved, instead of running the words on either side together.
- Djot task list items (
- [ ]/- [x]) round-trip instead of having the checkbox escaped and the item text split onto a separate line. - Djot display math (
$$) is no longer written back as inline math ($). - Djot autolinks (
<url>) round-trip instead of being expanded to a full[url](url)link.