Adapt to the new Python Markdown extensions API