Skip footnote section if there are none
This commit is contained in:
@@ -303,6 +303,7 @@ class ToHtml(Tokenizer):
|
||||
|
||||
def appendFootnotes(self) -> None:
|
||||
"""Append the footnotes in the buffer."""
|
||||
if self._footnotes:
|
||||
tags = HTML4_TAGS if self._genMode == self.M_PREVIEW else HTML5_TAGS
|
||||
footnotes = self._localLookup("Footnotes")
|
||||
|
||||
|
||||
@@ -199,6 +199,7 @@ class ToMarkdown(Tokenizer):
|
||||
|
||||
def appendFootnotes(self) -> None:
|
||||
"""Append the footnotes in the buffer."""
|
||||
if self._footnotes:
|
||||
tags = STD_MD if self._genMode == self.M_STD else EXT_MD
|
||||
footnotes = self._localLookup("Footnotes")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user