unwind markup parsers up to the opening bracket when a closing bracket is encountered