Commit 12b16001b76c017854da2c5f642ed1f3c070591b

Martin Mitas 2016-12-01T21:48:42

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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/md4c/md4c.c b/md4c/md4c.c
index 4b8acff..9e1538a 100644
--- 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 {