We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ff1a6e commit ad32732Copy full SHA for ad32732
jupyter_book_to_htmlbook/text_processing.py
@@ -51,6 +51,7 @@ def move_span_ids_to_sections(chapter):
51
for span in empty_id_spans:
52
if (
53
span.parent.name == "section" and
54
+ span.next_sibling and # guard in case of no next_sibling
55
span.next_sibling.name in ["h1", "h2", "h3", "h4", "h5"]
56
):
57
# add span id to section
0 commit comments