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 e950096b53fcdbbf25f193cf38ee14d93fe1442e
parent dda885e7ab4862e4e07f1f623889bbcabf50bad3
Author: Martin Mitas <mity@morous.org>
Date:   Sat,  8 Oct 2016 21:09:55 +0200

Fix misdetection of HTML block starting condition type 7.

The condition cannot span over multiple lines.

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

diff --git a/md4c/md4c.c b/md4c/md4c.c @@ -351,7 +351,7 @@ md_is_html_tag(MD_CTX* ctx, const MD_LINE* lines, int n_lines, OFF beg, OFF* p_e /* (Optional) attributes (if not closer), (optional) '/' (if not closer) * and final '>'. */ while(1) { - while(off < line_end) { + while(off < line_end && !ISNEWLINE(off)) { if(attr_state > 40) { if(attr_state == 41 && ISANYOF(off, _T("\"'=<>`"))) { attr_state = 0;