Skip to content

Keep One List of Paragraph-Interrupting HTML Block Names Across pr_review.py and prose_lint.py #3228

Closed

Description

@ptr727

The shape

Two hub tools each spell out the GFM list of HTML block names that interrupt a paragraph, and the two lists disagree:

  • scripts/pr_review.py HTML_BLOCK_NAMES (added for End a Code Span at an HTML Block Line in pr_review.py #3214) carries the CommonMark 0.29 list, with source and without search. Its raw-text start is pre|script|style.
  • .github/actions/prose-gate/prose_lint.py INTERRUPTING_TAGS carries the 0.31 list, with search and without source. Its RAW_TEXT_TAGS adds textarea.

So a line opening <source> ends a paragraph for one tool and not the other, and <search> the reverse.

Expected

One list, matching the renderer GitHub actually runs (cmark-gfm), stated once, with the other site reading it or pinned to it by a test. prose_lint.py lives in a carried composite action, so a shared import may not be available, in which case a test asserting the two lists agree is the bound.

Found by the local review of the #3214 fix.

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

    enhancementscript

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions