Skip to content

Commit f37e3b9

Browse files
author
Waylan Limberg
committed
Fixed #216. WikiLink Extension actually accepts configs.
1 parent 49cc78a commit f37e3b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

markdown/extensions/wikilinks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ def __init__(self, configs):
9898
'html_class' : ['wikilink', 'CSS hook. Leave blank for none.'],
9999
'build_url' : [build_url, 'Callable formats URL from label.'],
100100
}
101-
101+
configs = configs or {}
102102
# Override defaults with user settings
103-
for key, value in configs :
103+
for key, value in configs.items :
104104
self.setConfig(key, value)
105105

106106
def extendMarkdown(self, md, md_globals):

0 commit comments

Comments
 (0)