diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9f11b75 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea/ diff --git a/mdx_bib.py b/mdx_bib.py index b3558f5..c7f9e80 100644 --- a/mdx_bib.py +++ b/mdx_bib.py @@ -103,6 +103,7 @@ class CitationsPreprocessor(Preprocessor): """Gather reference definitions and citation keys""" def __init__(self, bibliography): + super().__init__() self.bib = bibliography def subsequentIndents(self, lines, i): @@ -168,6 +169,7 @@ class CitationsTreeprocessor(Treeprocessor): """Add a bibliography/reference section to the end of the document""" def __init__(self, bibliography): + super().__init__() self.bib = bibliography def run(self, root): @@ -188,7 +190,7 @@ def __init__(self, *args, **kwargs): self.getConfig("order"), ) - def extendMarkdown(self, md, md_globals): + def extendMarkdown(self, md): md.registerExtension(self) self.parser = md.parser self.md = md