Commit 13672154bd63b7277da2abde82957f9b8fe4b8f1

Martin Mitas 2019-03-26T15:10:12

md_is_container_mark: Check the indentation is not too big... If it is then it is rather an indented code block.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/md4c/md4c.c b/md4c/md4c.c
index 5c46481..ffb88b0 100644
--- a/md4c/md4c.c
+++ b/md4c/md4c.c
@@ -5419,6 +5419,9 @@ md_is_container_mark(MD_CTX* ctx, unsigned indent, OFF beg, OFF* p_end, MD_CONTA
     OFF off = beg;
     OFF max_end;
 
+    if(indent >= ctx->code_indent_offset)
+        return FALSE;
+
     /* Check for block quote mark. */
     if(off < ctx->size  &&  CH(off) == _T('>')) {
         off++;