Skip to content

read: an empty paragraph before a list in a table cell is lost #214

Description

@willkg

An empty paragraph just before a list in a table cell loses its line on the round trip. The table property test found it on main while I was working on #204, once a change to the generator moved its seeds onto this shape:

<td><p><strong>x up</strong></p><p /><ol><li><p>auth</p></li></ol></td>

reads as | **x up**<br><ol><li><p>auth</p></li></ol> |. That publishes as <strong>x up</strong><br><ol>…, and the next read drops the <br>: | **x up**<ol>…</ol> |. So the Markdown is not a fixed point, and the empty line is gone.

renderCellLines puts a <br> before the empty line and none before the list (a list ends its line by being a block), so the <br> it writes ends up directly before the <ol>, where it has no effect. #55 already keeps a table raw for an empty paragraph at either end of a cell. The likely fix is the same rule for an empty paragraph next to a list, in tableShape.

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

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions