Commit feee62563f81d42c1e279db51e09e7a06a915c78

Martin Mitas 2016-10-09T00:16:55

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

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/md4c/md4c.c b/md4c/md4c.c
index 1ee3e20..2c712eb 100644
--- 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;