Commit 203ed89218113dcd0652b8ede5c9ada63a2f22ea

Martin Mitas 2016-12-01T17:41:51

md_analyze_line: Update MD_CONTAINER when switching to the brother list item.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/md4c/md4c.c b/md4c/md4c.c
index 3f6567c..df3ce83 100644
--- a/md4c/md4c.c
+++ b/md4c/md4c.c
@@ -4927,6 +4927,8 @@ redo:
                 pivot_line = &md_dummy_blank_line;
 
                 if(n_parents < ctx->n_containers  &&  md_is_container_compatible(&ctx->containers[n_parents], &container)) {
+                    ctx->containers[n_parents].mark_indent = container.mark_indent;
+                    ctx->containers[n_parents].contents_indent = container.contents_indent;
                     n_brothers++;
                     goto redo;
                 }