From e123516bfbf9f0ebc84daef5c9467343bad9898c Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 9 Nov 2014 16:28:20 -0800 Subject: Fixed bug. Need to remove open delimiters from the stack when they don't match for a link. --- src/inlines.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/inlines.c b/src/inlines.c index a1ecf01..634caea 100644 --- a/src/inlines.c +++ b/src/inlines.c @@ -765,6 +765,7 @@ static node_inl* handle_close_bracket(subject* subj, node_inl **last) noMatch: // If we fall through to here, it means we didn't match a link: + remove_delimiter(subj, ostack); // remove this opener from delimiter stack subj->pos = initial_pos; return make_str(chunk_literal("]")); -- cgit v1.2.3