md4c

C Markdown parser. Fast. SAX-like interface. Compliant to CommonMark specification.
git clone https://noulin.net/git/md4c.git
Log | Files | Refs | README | LICENSE

commit 25f0f13790e89a851888ad9eaba83762e000caea
parent e7908d566df0af26bc12e732ad2d455dae2e965c
Author: Martin Mitas <mity@morous.org>
Date:   Thu,  1 Dec 2016 11:32:04 +0100

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

Diffstat:
Mmd4c/md4c.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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 {