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
Browse filesBrowse the repository at this point in the historyBrowse files
Markus Paulsen
committed
Count the text a code span makes visible again
A backtick-delimited comment marker is not a comment. GitHub renders
`<!--`, whatever follows it and `-->` in full, so a limit that skipped
the text between them measured nothing a reader would see, and the same
misreading could swallow a heading between a marker shown in prose and
the next genuine comment.
Inline code spans therefore join the constructs recognised in the same
left-to-right scan, with both delimiter runs guarded on both sides so a
run of two cannot close on the tail of a run of three, and with the
search for the close stopping where the block does, at a blank line or
at a heading. The opening run is possessive, because the body is
untrusted input on a fork pull request and a run that never closes must
cost one scan.
0 commit comments