def run(self, reader: TextReader, document: Element) -> bool:
    reader.step(1)
    document += addnodes.bracket(marker=']', can_open=False, position=(reader.position - 1))
    self.process_link_or_image(reader, document)
    return True
def run(self, reader: TextReader, document: Element) -> bool:
    reader.step(1)
    document += addnodes.bracket(marker=']', can_open=False, position=(reader.position - 1))
    self.process_link_or_image(reader, document)
    return True