Fix: Fence code block indetation base is defined by indentation of opening code fence.
diff --git a/md4c/md4c.c b/md4c/md4c.c
index 2f3d394..7a0a13c 100644
--- a/md4c/md4c.c
+++ b/md4c/md4c.c
@@ -1530,6 +1530,12 @@ redo_indentation_after_blockquote_mark:
}
}
+ /* Change indentation accordingly to the initial code fence. */
+ if(line->indent > pivot_line->indent)
+ line->indent -= pivot_line->indent;
+ else
+ line->indent = 0;
+
line->type = MD_LINE_FENCEDCODE;
goto done;
}