Skip to content

Strip a List Item's Opening Label for Every Marker the Prose Gate Recognizes #2738

Closed

Description

@ptr727

Problem

LABEL_COLON in .github/actions/prose-gate/prose_lint.py strips a list item's opening **Label**: (or **Label:**) before the semicolon check reads the line, but it accepts only -, *, and N. as list markers. LIST_MARKER in the same file already accepts + and N) as well.

So the same bullet is judged two ways depending on its marker. Constructed example:

  • - **Inputs**: a, b; **Outputs**: c and d. is reported, since the opening label is stripped and no colon is left before the semicolon.
  • + **Inputs**: a, b; **Outputs**: c and d. and 1) **Inputs**: a, b; **Outputs**: c and d. are exempt, since the label survives and announces a list.

Done Looks Like

LABEL_COLON reuses LIST_MARKER's marker set, and a test feeds each marker spelling and asserts one verdict for all of them.

Found by the local review of #2737, on code that change did not touch.

Activity

  1. added
    bug
    pre-existing
    prose
    on Oct 10, 2026
  2. ptr727 commented on Oct 10, 2026

    @ptr727
    OwnerAuthor

    Widened: every bold spelling, not only every marker. LABEL_COLON matches only \*\*[^*]+?, so an opening label spelled __Label__:, __Label:__, or ***Label***: is not stripped either. Constructed examples:

    • - **Inputs**: a, b; outputs: c and d. is reported.
    • - __Inputs__: a, b; outputs: c and d. and - ***Inputs***: a, b; outputs: c and d. are exempt.

    The rule text in comment-and-doc-style (from #2737) says a list item's bold opening label is not the first of a labeled pair. The fix makes the gate recognize every bold spelling on every marker LIST_MARKER accepts. No tree line currently uses the __ or *** spelling on a list opener.

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

    bugpre-existingprose

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions