aboutsummaryrefslogtreecommitdiffstats
path: root/markdown/extensions/sane_lists.py
diff options
context:
space:
mode:
authorWaylan Limberg <waylan.limberg@icloud.com>2018-07-31 13:30:02 -0400
committerGitHub <noreply@github.com>2018-07-31 13:30:02 -0400
commit7dad12c07e3e701da42474696398cb32e5c9979f (patch)
tree2a2bd4d52e871d64c7e488b55a3440015a9bb4e8 /markdown/extensions/sane_lists.py
parentf261ffd065bcfea13d41a9861232155816c5933f (diff)
downloadmarkdown-7dad12c07e3e701da42474696398cb32e5c9979f.tar.gz
markdown-7dad12c07e3e701da42474696398cb32e5c9979f.tar.bz2
markdown-7dad12c07e3e701da42474696398cb32e5c9979f.zip
Deprecate md_globals from extension API. (#697)
In the past, most of the config was defined using globals. Today all of the config is held on the class instance. Therefore, the `md_globals` parameter is no longer necessary.
Diffstat (limited to 'markdown/extensions/sane_lists.py')
-rw-r--r--markdown/extensions/sane_lists.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/markdown/extensions/sane_lists.py b/markdown/extensions/sane_lists.py
index 479da04..54012b6 100644
--- a/markdown/extensions/sane_lists.py
+++ b/markdown/extensions/sane_lists.py
@@ -46,7 +46,7 @@ class SaneUListProcessor(UListProcessor):
class SaneListExtension(Extension):
""" Add sane lists to Markdown. """
- def extendMarkdown(self, md, md_globals):
+ def extendMarkdown(self, md):
""" Override existing Processors. """
md.parser.blockprocessors.register(SaneOListProcessor(md.parser), 'olist', 40)
md.parser.blockprocessors.register(SaneUListProcessor(md.parser), 'ulist', 30)