From ccc9c3ec580cb93aeed81b8320746c164a7acdb5 Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Sun, 16 Jun 2013 21:30:51 -0400 Subject: Fixed wikilinks extension's handling of config setting. Not sure how I didn't notice the tests were failing for this before. --- markdown/extensions/wikilinks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/markdown/extensions/wikilinks.py b/markdown/extensions/wikilinks.py index 95663ee..ba1947c 100644 --- a/markdown/extensions/wikilinks.py +++ b/markdown/extensions/wikilinks.py @@ -98,9 +98,9 @@ class WikiLinkExtension(Extension): 'html_class' : ['wikilink', 'CSS hook. Leave blank for none.'], 'build_url' : [build_url, 'Callable formats URL from label.'], } - configs = configs or {} + configs = dict(configs) or {} # Override defaults with user settings - for key, value in configs.items : + for key, value in configs.items(): self.setConfig(key, value) def extendMarkdown(self, md, md_globals): -- cgit v1.2.3