Skip to content

Commit 782d5a8

Browse files
committed
Fix code text bugs.
1 parent c26f61a commit 782d5a8

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

mmd.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1810,7 +1810,6 @@ mmd_parse_inline(_mmd_doc_t *doc, // I - Document
18101810
DEBUG2_puts("mmd_parse_inline: Reverting to normal text.\n");
18111811

18121812
type = MMD_TYPE_NORMAL_TEXT;
1813-
lineptr += delimlen - 2;
18141813
delim = NULL;
18151814
delimlen = 0;
18161815
}
@@ -1858,7 +1857,10 @@ mmd_parse_inline(_mmd_doc_t *doc, // I - Document
18581857
}
18591858

18601859
if (text)
1860+
{
1861+
DEBUG_puts("mms_parse_inline: Adding text at end.\n");
18611862
mmd_add(parent, type, whitespace, text, NULL);
1863+
}
18621864
}
18631865

18641866

testmmd.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,4 +225,5 @@ be interpreted as a table.
225225

226226
- First item
227227
- Second item
228-
228+
- Some pathological nested link and inline style features supported by
229+
CommonMark like "`******Really Strong Text******`".

0 commit comments

Comments
 (0)