From 7dad12c07e3e701da42474696398cb32e5c9979f Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Tue, 31 Jul 2018 13:30:02 -0400 Subject: 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. --- markdown/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'markdown/core.py') diff --git a/markdown/core.py b/markdown/core.py index d25f20d..98c9252 100644 --- a/markdown/core.py +++ b/markdown/core.py @@ -113,7 +113,7 @@ class Markdown(object): if isinstance(ext, util.string_type): ext = self.build_extension(ext, configs.get(ext, {})) if isinstance(ext, Extension): - ext.extendMarkdown(self, globals()) + ext._extendMarkdown(self) logger.debug( 'Successfully loaded extension "%s.%s".' % (ext.__class__.__module__, ext.__class__.__name__) -- cgit v1.2.3