Commit 3f95f0653778ea5c1a54a26453051f0c1c20667f

Martin Mitas 2016-12-01T21:40:50

md_process_all_blocks: Fix decrementing of ctx->n_containers when leaving blockquote.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/md4c/md4c.c b/md4c/md4c.c
index 3232d37..4b8acff 100644
--- a/md4c/md4c.c
+++ b/md4c/md4c.c
@@ -3891,7 +3891,7 @@ md_process_all_blocks(MD_CTX* ctx)
             if(block->flags & MD_BLOCK_CONTAINER_CLOSER) {
                 MD_LEAVE_BLOCK(block->type, det);
 
-                if(block->type == MD_BLOCK_UL || block->type == MD_BLOCK_OL)
+                if(block->type == MD_BLOCK_UL || block->type == MD_BLOCK_OL || block->type == MD_BLOCK_QUOTE)
                     ctx->n_containers--;
             }