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 12b16001b76c017854da2c5f642ed1f3c070591b
parent 3f95f0653778ea5c1a54a26453051f0c1c20667f
Author: Martin Mitas <mity@morous.org>
Date:   Thu,  1 Dec 2016 21:48:42 +0100

md_analyze_line: Blank line inside a blockquote cannot have a list loosening effect.

Diffstat:
Mmd4c/md4c.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/md4c/md4c.c b/md4c/md4c.c @@ -4857,7 +4857,9 @@ redo: ctx->last_line_has_list_loosening_effect = FALSE; } else { line->type = MD_LINE_BLANK; - ctx->last_line_has_list_loosening_effect = (n_brothers + n_children == 0); + ctx->last_line_has_list_loosening_effect = (n_parents > 0 && + n_brothers + n_children == 0 && + ctx->containers[n_parents-1].ch != _T('>')); } goto done; } else {