Browse Source
HTML blocks of types 1-5 (e.g. `<!--` comments) must continue until their closing sequence (`-->` for comments), per CommonMark. Only types 6 and 7 end on a blank line. The block scanner broke out of the continuation loop whenever a line was outdented below the current block indent. Inside a container such as a list item, a blank line is outdented (its sCount is 0), so a comment block was terminated early instead of running to `-->`. Skip that break for outdented blank lines unless the block type actually ends on a blank line, so comment blocks no longer depend on indentation. Adds regression fixtures for issue #1144. Co-authored-by: ATOM00blue <219721791+ATOM00blue@users.noreply.github.com>pull/1163/head
committed by
GitHub
2 changed files with 55 additions and 1 deletions
Loading…
Reference in new issue