Skip to content

Exempt a List Item's Label Separator from the Dash Rule for Every Marker and Bold Spelling #2770

Closed

Description

@ptr727

Problem

LABEL_DASH in .github/actions/prose-gate/prose_lint.py exempts a list item's opening - **Label** - explanation separator from the dash rule, but it states its own marker set (-, *, N.) and reads only the ** spelling. LIST_MARKER accepts + and N) as well, and the comment-and-doc-style rule exempts the label separator whatever spells it.

So the same bullet is judged two ways depending on its marker or emphasis. Constructed examples:

  • - **Label** - text and 1. **Label** - text give no finding.
  • + **Label** - text, 1) **Label** - text, - __Label__ - text, and - ***Label*** - text each report dash.

This is the second site of the defect class #2738 fixed in LABEL_COLON, found by the local review of that fix's pull request.

Done Looks Like

LABEL_DASH builds on LIST_MARKER_TOKEN rather than its own marker set, and the strong-emphasis alternation LABEL_COLON carries moves into one shared token both patterns use. A test feeds each marker and each bold spelling and asserts one verdict for all of them.

Activity

  1. added
    bug
    pre-existing
    prose
    on Oct 11, 2026
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