md4c

C Markdown parser. Fast. SAX-like interface. Compliant to CommonMark specification.
git clone https://noulin.net/git/md4c.git
Log | Files | Refs | README | LICENSE

commit 3eba7f424cd9dda93c3fb0cd357e7426aa9695bb
parent 1d8a4e72941482a3e2c1afe92c82533868f6546b
Author: Martin Mitas <mity@morous.org>
Date:   Thu, 24 Nov 2016 23:50:06 +0100

md_analyze_line: End raw HTML block prematurely if enclosing container ends.

Diffstat:
Mmd4c/md4c.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/md4c/md4c.c b/md4c/md4c.c @@ -4721,8 +4721,10 @@ redo: } } - line->type = MD_LINE_HTML; - goto done; + if(n_parents == ctx->n_containers) { + line->type = MD_LINE_HTML; + goto done; + } } /* Check for blank line. */