mirror of
https://github.com/storytold/wordcraft.git
synced 2026-11-18 08:25:34 +00:00
CodeRabbit review: list_autoformat()'s numbering guard only checked para.props.numbering (direct formatting). A heading numbered through its style's linked Multilevel List preset (#1793) carries no direct numbering at all — it's resolved from the style — so the guard missed it, and typing "- " at the start of such a heading replaced its real number with a fresh bullet instead of staying as plain text. Fix: check the paragraph's resolved numbering (direct formatting over the style chain), which reflects the list a heading actually has whichever way it got it. Reverse-verified: reverting just this guard reproduces the corruption (the heading's "1.1" becomes "-"); passes with the fix restored. Full engine suite (790 tests) and cargo fmt/clippy clean. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>