Commit 25f0f13790e89a851888ad9eaba83762e000caea

Martin Mitas 2016-12-01T11:32:04

md_analyze_line: Use ctx->code_indent_offset rather then encoded 4.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/md4c/md4c.c b/md4c/md4c.c
index 156007e..09b531a 100644
--- a/md4c/md4c.c
+++ b/md4c/md4c.c
@@ -4899,7 +4899,7 @@ redo:
         line->beg = off;
 
         /* Some of the following whitespace actually still belongs to the mark. */
-        if(line->indent <= 4) {
+        if(line->indent <= ctx->code_indent_offset) {
             container.contents_indent += line->indent;
             line->indent = 0;
         } else {