Skip to content

v0.3.0 — Editor reliability overhaul

Choose a tag to compare

@subsy subsy released this 29 Jun 11:02
72290b9

A focused pass on editor trustworthiness and editing behavior. The block model now carries stable identities and re-syncs the DOM on structural edits, fixing a class of "untrustworthy" bugs (stale paste/delete, headings reverting, drifting comment/proposal anchors), and adds the editing behaviors people expect from a block editor.

Reliability

  • Stable block IDs via reconciliation — comment and proposal anchors no longer drift on edits, and React keys/refs stay attached to the right content.
  • DOM re-sync on structural commits — paste, delete, move, import, and remote/agent/revision edits repaint immediately instead of showing stale content until the next click.
  • Code blocks preserve whitespace; ordered lists renumber sequentially; comment anchors stay editable.

Editing behavior

  • Enter splits the current block at the caret into a new block instantly (and correctly, even mid-typing), with Shift+Enter as a soft line break.
  • Enter on an empty list item exits the list as a paragraph.
  • Backspace at the start of a block merges it into the previous block.
  • Multi-block formatting — selecting several blocks (including a real cross-block drag) and choosing Bulleted/Numbered list or a heading now converts every selected block.
  • Markdown input rules — typing 1. , - , or * at the start of a paragraph starts a list.
  • Nested/long code fences (4+ backticks) and image-block keyboard navigation.

Parser / serialization

  • Block line-spans kept in step with the parser (long fences, empty list items) so anchoring stays aligned; mixed ordered/unordered lists serialize as distinct lists; duplicated text anchors to the nearest occurrence.

Tooling

  • e2e tests run per-file with Chrome --disable-dev-shm-usage so CI no longer deadlocks/crashes; new unit + e2e regression coverage throughout.

Full changelog: v0.2.0...v0.3.0