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
Read Every Empty List Item Marker as an Item in prose_lint.py #3243
LIST_MARKER in .github/actions/prose-gate/prose_lint.py requires whitespace after the marker, so a list item that opens empty, with its text on the next line, is never read as an item. A bare - is handled where the setext check reads it, as of #3236's change, but *, +, 1., and 1) alone on a line land in the paragraph as a word, and the paragraph after them is measured against column 0 rather than the item's content column.
Constructed case:
*
First sentence of the item, long enough to approach the cap
<div>
Second sentence.
GitHub reads the <div> line as two columns past the item's content, so it opens an HTML block and ends the paragraph. Rendering *\n para\n <div>\n *x* leaves *x* raw inside the <li>. The prose gate reads the <div> line as four columns past column 0, continues the paragraph, and measures the two sentences as one.
Before #3236's change the prose gate ended the paragraph at any tag line, so this shape read correctly by accident. No tracked Markdown file opens an item empty today.
Expected
An empty item opening on any marker sets the list state the same way a bare - does, most likely by letting LIST_MARKER accept the end of the line, with each marker pinned by a test.
Activity
Read Every Empty Item Marker and Count Item Columns Past Tabs in pros…
Bound a Paragraph-Interrupting Tag Line's Indent by Its Container in …