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:
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;