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
Skip Inline Code Spans When Numbering an Inline Markdown Comment #3414
The prose gate numbers an inline Markdown HTML comment by searching the paragraph's source lines for the comment's own text, resuming after the previous comment. Where an inline code span earlier in the same paragraph holds that exact text, the search stops on the code span's line, so a comment-wrap or comment-case finding on the real comment is reported one line too early, and a --diff run touching only the comment's real line drops it.
Reproduction (constructed)
Write `<!-- check this later. -->` here,
then <!-- check this later. -->
comment-case reports line 1 rather than line 2.
What fixing it needs
The search advanced past each code_inline child's source text as well as past each comment, so a code span can never be where a later comment is found.
Activity
Restructure the Prose Gate into Extract, Normalize, and Evaluate Laye…
Lex Heredoc Bodies Apart and Skip Code Spans When Numbering Inline Co…