Skip to content

read: two lists side by side come back as one list #205

Description

@willkg

Problem

read and export write two adjacent lists of the same kind with a blank line between them, and Markdown reads that as one loose list, so the next publish merges them. Found by the table property test in #55.

Reproduced 2026-09-25 (read → publish):

storage read writes publish sends
<ol><li>a</li></ol><ol><li>b</li></ol> 1. a blank line 1. b one <ol> with two items, each wrapped in <p> (a loose list)
<ul><li>a</li></ul><ul><li>b</li></ul> - a blank line - b one <ul> with two items, each wrapped in <p>

Two lists become one, and the items gain paragraph spacing. It happens anywhere read writes blocks: the top level, layout cells, macro bodies and raw table cells. The table property test's generator avoids writing adjacent lists so that it does not fail on this.

Notes

  • CommonMark ends a list when the bullet character changes (- then *) or the ordered delimiter changes (. then )), and an HTML comment between the two (<!-- -->) also separates them. Changing the marker is the least noisy fix, but it has to survive the next read, so the Markdown stays a fixed point.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions