Skip to content

Commit

Permalink
remove md_globals from extendMarkdown method as it does not match bas…
Browse files Browse the repository at this point in the history
…e class signature
  • Loading branch information
btbytes committed Apr 6, 2023
1 parent 825436e commit 47e13cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea/
4 changes: 3 additions & 1 deletion mdx_bib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand All @@ -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
Expand Down

0 comments on commit 47e13cb

Please sign in to comment.