def METHOD_NAME(self, md, md_globals):
    """ Insert IdTreeProcessor in tree processors. It should be before toc. """
    idext = IdTreeProcessor(md)
    idext.config = self.config
    md.treeprocessors.add("elid", idext, "_begin")