diff options
-rw-r--r-- | src/inlines.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/inlines.c b/src/inlines.c index 08d86ae..3a5733f 100644 --- a/src/inlines.c +++ b/src/inlines.c @@ -1124,7 +1124,10 @@ extern void cmark_parse_inlines(cmark_mem *mem, cmark_node *parent, ; process_emphasis(&subj, NULL); - // free bracket stack + // free bracket and delim stack + while (subj.last_delim) { + pop_bracket(&subj); + } while (subj.last_bracket) { pop_bracket(&subj); } |