forked from LiveCarta/BookConverter
epub converter: fix footnotes
This commit is contained in:
@@ -242,7 +242,8 @@ def preprocess_footnotes(source_html_tag: Tag, href2soup_html: dict = None, note
|
||||
content = footnote_tag.text
|
||||
# footnote_tag.decompose()
|
||||
footnotes.append(content)
|
||||
new_footnotes_tags.append(footnote_tag.find(attrs={'role': 'doc-backlink'}))
|
||||
footnote_tag = footnote_tag.find(attrs={'role': 'doc-backlink'}) or footnote_tag
|
||||
new_footnotes_tags.append(footnote_tag)
|
||||
|
||||
return footnotes, new_noterefs_tags, new_footnotes_tags
|
||||
|
||||
|
||||
Reference in New Issue
Block a user