Commit b2e74fb5 by Michael J. Schultz

Use markdown 2.6 extension_configs to configure extension

parent d9d34e48
......@@ -159,8 +159,15 @@ try:
of '#' style headers to <h2>.
"""
extensions = ['markdown.extensions.headerid(level=2)']
md = markdown.Markdown(extensions=extensions)
extensions = ['markdown.extensions.headerid']
extension_configs = {
'markdown.extensions.headerid': {
'level': '2'
}
}
md = markdown.Markdown(
extensions=extensions, extension_configs=extension_configs
)
return md.convert(text)
except ImportError:
apply_markdown = None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment