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 9af285a67eefaf9b22b8e142cd71a900efbcd566
parent 55f39e2a01d0940f88401a5f471c0cb912ceecc6
Author: Martin Mitas <mity@morous.org>
Date:   Tue, 11 Oct 2016 12:02:08 +0200

Fix transforming a new line into space inside of a code span.

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

diff --git a/md4c/md4c.c b/md4c/md4c.c @@ -1416,7 +1416,7 @@ md_process_inlines(MD_CTX* ctx, const MD_LINE* lines, int n_lines) MD_ASSERT(mark->ch == '`' && (mark->flags & MD_MARK_CLOSER)); if(prev_mark->end < off && off < mark->beg) - MD_TEXT(MD_SPAN_CODE, _T(" "), 1); + MD_TEXT(MD_TEXT_CODE, _T(" "), 1); } else { /* Output soft or hard line break. */ MD_TEXTTYPE break_type = MD_TEXT_SOFTBR;