Commit d82bf9e0a0cbb6bcff208a257be4738d0a16a95e

Martin Mitas 2016-11-26T23:13:35

md_is_container_mark: If indented as an indented code block, we cannot be a container start. This fixes this: > foo - bar

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 96b00d5..1f05c4d 100644
--- a/md4c/md4c.c
+++ b/md4c/md4c.c
@@ -4583,6 +4583,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++;