Skip to content

Commit 4abb391

Browse files
committed
docutils 0.17+'s HTML5 writer writes <section> instead of <div class="section">.
1 parent 66d0fdd commit 4abb391

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/theme.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ function ThemeNav () {
136136
// Find associated id element, then its closest section
137137
// in the document and try with that one.
138138
var id_elt = $('.document [id="' + anchor.substring(1) + '"]');
139-
var closest_section = id_elt.closest('div.section');
139+
var closest_section = id_elt.closest("section");
140140
link = vmenu.find('[href="#' + closest_section.attr("id") + '"]');
141141
if (link.length === 0) {
142142
// still not found in the sidebar. fall back to main section

0 commit comments

Comments
 (0)