def registerExtension(self, extension):
        self.registeredExtensions.append(extension)
        return self
This gets called by the extension
dataset/ETHPy150Open isnowfy/pydown/markdown/__init__.py/Markdown.registerExtension