Some markdown patches

This commit is contained in:
2022-07-29 18:12:13 +02:00
parent f62a26eb33
commit fb02893d21
8 changed files with 76 additions and 32 deletions

View File

@ -166,8 +166,9 @@ class FootnoteExtension(Extension):
div = etree.Element("div")
div.set('class', 'footnote')
etree.SubElement(div, "hr")
# etree.SubElement(div, "hr")
ol = etree.SubElement(div, "ol")
# ol = etree.Element("ol")
surrogate_parent = etree.Element("div")
for index, id in enumerate(self.footnotes.keys(), start=1):
@ -198,6 +199,7 @@ class FootnoteExtension(Extension):
p = etree.SubElement(li, "p")
p.append(backlink)
return div
# return ol
class FootnoteBlockProcessor(BlockProcessor):