- Commit
- e123516bfbf9f0ebc84daef5c9467343bad9898c
- Parent
- bc89203925ea5837d0435441831d4240b71d65fa
- Author
- John MacFarlane <jgm@berkeley.edu>
- Date
Fixed bug.
Need to remove open delimiters from the stack when they don't match for a link.
My personal build of CMark ✏️
Fixed bug.
Need to remove open delimiters from the stack when they don't match for a link.
1 file changed, 1 insertion, 0 deletions
Status | File Name | N° Changes | Insertions | Deletions |
Modified | src/inlines.c | 1 | 1 | 0 |
diff --git 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("]"));