def run(self, reader: TextReader, document: Element) -> bool:
    marker = reader.consume(self.pattern).group(0)
    document += addnodes.bracket(marker=marker, can_open=True, active=True, position=reader.position)
    return True
def run(self, reader: TextReader, document: Element) -> bool:
    marker = reader.consume(self.pattern).group(0)
    document += addnodes.bracket(marker=marker, can_open=True, active=True, position=reader.position)
    return True