github iwe-org/iwe iwe-v0.6.0
v0.6.0

latest releases: iwec-v0.6.0, iwes-v0.6.0
4 hours ago

iwe

Added

  • preserve_newlines config option keeps each line of a paragraph on its own line during normalize instead of joining them with spaces, so source files written with one sentence per line (semantic line breaks) survive formatting (default off).

Fixed

  • normalize no 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.
  • normalize keeps the word boundary at a hard line break instead of running the surrounding words together.
  • normalize preserves djot task list checkboxes (- [ ] / - [x]), display math ($$), and autolinks (<url>) instead of mangling them.

iwes

Added

  • preserve_newlines config 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

  • FormattingOptions gains a preserve_newlines field (default false); when enabled, a soft line break inside a paragraph is read as DocumentInline::SoftBreak and written back as a plain newline instead of being collapsed into a space, so the source line layout survives normalization.

Changed

  • Inline::Math now carries a MathType (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.

Don't miss a new iwe release

NewReleases is sending notifications on new releases.