Skip to content

Ordered lists: allowMergeInto is set but never read, and text can merge into an ordered list #4287

Closed

Description

@mstomar125

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.

Activity

  1. self-assigned this
    on Nov 17, 2026
  2. mstomar125 commented on Nov 17, 2026

    @mstomar125
    ContributorAuthor

    Claimed; working on this in a PR.

  3. mstomar125 commented on Nov 17, 2026

    @mstomar125
    ContributorAuthor

    PR #4296: ordered-list plugin now sets acceptsContentMerge: false (failing-first guard test, mutation-checked); the unread allowMergeInto flag is removed everywhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions