def _register_mdx_extensions(md): """Register required markdown extensions.""" # markdown's interface to specifying extensions is really painful. mdx_footnotes.makeExtension({}).extendMarkdown(md, markdown.__dict__) macro.makeExtension({}).extendMarkdown(md, markdown.__dict__)