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 02061353593b0d52fa9b83e661f7037332c16021
parent 0225f337b416aee0c295e02a0431bd86c5dbcc63
Author: Martin Mitas <mity@morous.org>
Date:   Tue,  4 Oct 2016 01:11:46 +0200

ATX header cannot eat multiple lines.

Diffstat:
Mmd4c/md4c.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/md4c/md4c.c b/md4c/md4c.c @@ -457,8 +457,8 @@ md_process_doc(MD_CTX *ctx) /* The same block continues as long lines are of the same type. */ if(line->type == pivot_line->type) { - /* But not so thematic break. */ - if(line->type == MD_LINE_HR) + /* But not so thematic break and ATX headers. */ + if(line->type == MD_LINE_HR || line->type == MD_LINE_ATXHEADER) goto force_block_end; /* Do not grow the 'lines' because of blank lines. Semantically