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 5864554ce8d3aa084440ae08c5e293be4e897db8
parent 9b693331976957aa856a8c5a510b4d3e3ae3bfb3
Author: Martin Mitas <mity@morous.org>
Date:   Sat,  8 Oct 2016 23:14:19 +0200

Fix: Stop fenced code block if blockquote level changes.

Diffstat:
Mmd4c/md4c.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/md4c/md4c.c b/md4c/md4c.c @@ -1520,7 +1520,7 @@ redo_indentation_after_blockquote_mark: line->beg = off; /* Check whether we are fenced code continuation. */ - if(pivot_line->type == MD_LINE_FENCEDCODE) { + if(pivot_line->type == MD_LINE_FENCEDCODE && line->quote_level == pivot_line->quote_level) { /* We are another MD_LINE_FENCEDCODE unless we are closing fence * which we transform into MD_LINE_BLANK. */ if(line->indent < ctx->code_indent_offset) {