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 feee62563f81d42c1e279db51e09e7a06a915c78
parent 088ff08a7dfeab02c987ab60f4f70383aec6af84
Author: Martin Mitas <mity@morous.org>
Date:   Sun,  9 Oct 2016 00:16:55 +0200

Fix: Blank line cannot be part of an indented code block if block quote level differs.

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

diff --git a/md4c/md4c.c b/md4c/md4c.c @@ -1584,7 +1584,7 @@ redo_indentation_after_blockquote_mark: */ if(off >= ctx->size || ISNEWLINE(off)) { line->indent = 0; - if(pivot_line->type == MD_LINE_INDENTEDCODE) + if(pivot_line->type == MD_LINE_INDENTEDCODE && line->quote_level == pivot_line->quote_level) line->type = MD_LINE_INDENTEDCODE; else line->type = MD_LINE_BLANK;