kjdev / hoextdown

Hoextdown is an extension to Hoedown
MIT License
23 stars 15 forks source link

Detect fenced code block starting in first line of list item #58

Closed gagern closed 4 years ago

gagern commented 4 years ago

Prior to this change, the in_fenced flag was not set correctly for the first line, and therefore inverted for every following line if the first line did start with a code block. Since the start of a subsequent list item is explicitly not detected while in fenced code, this essentially disabled the has_next_oli detection, leading to HOEDOWN_LI_END terminating not only the list item but the list as a whole.

Fixes https://github.com/kjdev/hoextdown/issues/57. This PR mirrors https://github.com/hoedown/hoedown/pull/237 since I'm unsure how the two projects interact.

kjdev commented 4 years ago

Thanks.