Commit 9af285a67eefaf9b22b8e142cd71a900efbcd566

Martin Mitas 2016-10-11T12:02:08

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

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/md4c/md4c.c b/md4c/md4c.c
index 3631d0b..15ef21c 100644
--- 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;