aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2013-05-19 16:19:53 -0300
committerWaylan Limberg <waylan@gmail.com>2013-05-19 16:19:53 -0300
commitf37e3b99e41ceec54684c67538665d19687478c3 (patch)
tree3305a8a42299e66dae42eb388edd0e69299d165b
parent49cc78a98050ee07909b57cfd4c8135276c7cecc (diff)
downloadmarkdown-f37e3b99e41ceec54684c67538665d19687478c3.tar.gz
markdown-f37e3b99e41ceec54684c67538665d19687478c3.tar.bz2
markdown-f37e3b99e41ceec54684c67538665d19687478c3.zip
Fixed #216. WikiLink Extension actually accepts configs.
-rw-r--r--markdown/extensions/wikilinks.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/markdown/extensions/wikilinks.py b/markdown/extensions/wikilinks.py
index 877890b..95663ee 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 {}
# Override defaults with user settings
- for key, value in configs :
+ for key, value in configs.items :
self.setConfig(key, value)
def extendMarkdown(self, md, md_globals):