Skip to content

Commit

Permalink
Fixed some problems that arose when module tried to access configurat…
Browse files Browse the repository at this point in the history
…ions.
  • Loading branch information
cmacmackin committed Jan 21, 2015
1 parent 8c41930 commit e65fd6b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions markdown_include/include.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@


class MarkdownInclude(Extension):
def __init__(self, configs=[]):
def __init__(self, configs={}):
self.config = {'base_path': ['.', 'Location from which to evaluate relative paths for the include statement.'],}
for key, value in configs:
for key, value in configs.items():
self.setConfig(key, value)

def extendMarkdown(self, md, md_globals):
Expand Down Expand Up @@ -95,5 +95,5 @@ def run(self, lines):



def makeExtension(*args,**kwargs):
return MarkdownInclude(*args,**kwargs)
def makeExtension(**kwargs):
return MarkdownInclude(kwargs)

0 comments on commit e65fd6b

Please sign in to comment.