commit c217261d291f37357615db9e016cf7fee202cc46
parent feee62563f81d42c1e279db51e09e7a06a915c78
Author: Martin Mitas <mity@morous.org>
Date: Sun, 9 Oct 2016 00:26:13 +0200
Fix: Handle empty blockquotes correctly.
Diffstat:
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/md4c/md4c.c b/md4c/md4c.c
@@ -1888,17 +1888,12 @@ md_process_doc(MD_CTX *ctx)
continue;
}
- /* Not much to do with multiple blank lines. */
- if(line->type == MD_LINE_BLANK)
- continue;
-
/* Otherwise we just accumulate the line into ongoing block. */
n_lines++;
}
/* Process also the last block. */
- if(pivot_line->type != MD_LINE_BLANK)
- MD_CHECK(md_process_block(ctx, lines, n_lines));
+ MD_CHECK(md_process_block(ctx, lines, n_lines));
/* Close any dangling parent blocks. */
MD_CHECK(md_process_blockquote_nesting(ctx, 0));