summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-11-09 16:28:20 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-11-09 16:28:52 -0800
commite123516bfbf9f0ebc84daef5c9467343bad9898c (patch)
treecde08b136bb4f481d392ac472ce40ada6ab20b4f
parentbc89203925ea5837d0435441831d4240b71d65fa (diff)
Fixed bug.
Need to remove open delimiters from the stack when they don't match for a link.
-rw-r--r--src/inlines.c1
1 files changed, 1 insertions, 0 deletions
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("]"));