diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-11-09 16:28:20 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-11-09 16:28:52 -0800 |
commit | e123516bfbf9f0ebc84daef5c9467343bad9898c (patch) | |
tree | cde08b136bb4f481d392ac472ce40ada6ab20b4f /src | |
parent | bc89203925ea5837d0435441831d4240b71d65fa (diff) |
Fixed bug.
Need to remove open delimiters from the stack when they don't match
for a link.
Diffstat (limited to 'src')
-rw-r--r-- | src/inlines.c | 1 |
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("]")); |