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 a0be9834f4f2b54273ec473b226ef97bb7144b25
parent 33258e68bd5a0c7170b0badbcd271423f6decc7b
Author: Martin Mitas <mity@morous.org>
Date:   Tue,  4 Oct 2016 21:28:23 +0200

md_is_html_block_start_condition: Fix check for "<!--".

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

diff --git a/md4c/md4c.c b/md4c/md4c.c @@ -539,7 +539,7 @@ md_is_html_block_start_condition(MD_CTX* ctx, OFF beg) } /* Check for type 2: <!-- */ - if(off + 3 < ctx->size && CH(off) == _T('!') && CH(off) == _T('-') && CH(off+1) == _T('-')) + if(off + 3 < ctx->size && CH(off) == _T('!') && CH(off+1) == _T('-') && CH(off+2) == _T('-')) return 2; /* Check for type 3: <? */