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. --- tests/test_apis.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/test_apis.py b/tests/test_apis.py index b5c7733..834299b 100644 --- a/tests/test_apis.py +++ b/tests/test_apis.py @@ -682,7 +682,7 @@ class testSerializers(unittest.TestCase): return '

foo

' class registerFakeSerializer(markdown.extensions.Extension): - def extendMarkdown(self, md, md_globals): + def extendMarkdown(self, md): md.output_formats['fake'] = fakeSerializer return registerFakeSerializer() @@ -962,7 +962,7 @@ class TestAncestorExclusion(unittest.TestCase): self.config = {} - def extendMarkdown(self, md, md_globals): + def extendMarkdown(self, md): """Modify inline patterns.""" pattern = r'(\+)([^\+]+)\1' -- cgit v1.2.3