You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Ordered lists: allowMergeInto is set but never read, and text can merge into an ordered list #4287
Found while correcting ADR-020 (merge prevention). Ordered lists set allowMergeInto: false on their component, but no code reads allowMergeInto (declared in TextareaControllerConfig, textarea-controller.svelte.ts:140; set on code-block, quote-block, ordered-list, horizontal-line and table). The real guard is acceptsContentMerge on the plugin, read through PluginRegistry.acceptsContentMerge in base-node-viewer.svelte (handleCombineWithPrevious, handleDeleteNode). Ordered-list has no acceptsContentMerge: false, so text can merge into an ordered list from below, which its component config says it should not allow.
Work
Decide which is intended: ordered lists refuse merges (then set acceptsContentMerge: false with a test that fails without it) or they accept them (then remove allowMergeInto: false from the ordered-list component). Also remove the dead allowMergeInto field if nothing reads it, or wire it. Update the decision record accordingly.
Done when
Component config and plugin guard agree, with a test, and no dead field remains.
PR #4296: ordered-list plugin now sets acceptsContentMerge: false (failing-first guard test, mutation-checked); the unread allowMergeInto flag is removed everywhere.
Activity
mstomar125 commentedon Nov 17, 2026
Claimed; working on this in a PR.
mstomar125 commentedon Nov 17, 2026
PR #4296: ordered-list plugin now sets acceptsContentMerge: false (failing-first guard test, mutation-checked); the unread allowMergeInto flag is removed everywhere.