diff options
Diffstat (limited to 'mdl_style.py')
-rw-r--r-- | mdl_style.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mdl_style.py b/mdl_style.py index 8ed6e92..37b6664 100644 --- a/mdl_style.py +++ b/mdl_style.py @@ -181,7 +181,7 @@ class LSRenderer(Renderer): for ref in self.fn_lnk_refs: refs += '{}\n'.format(ref) - # empty fn_lnk_refs + # Empty fn_lnk_refs self.fn_lnk_refs = [] return refs @@ -204,8 +204,14 @@ class LSMarkdown(Markdown): super(LSMarkdown, self).__init__(renderer, inline, block, **kwargs) def parse(self, text): + # Reset footnote link variables. + self.renderer.fn_lnk_num = 0 + self.renderer.fn_lnk_refs = [] + + # Parse text. out = super(LSMarkdown, self).parse(text) + # Spit out. return out.lstrip('\n') |