Skip to content

Commit 193428d

Browse files
committed
Correctly fall through to sidebar
1 parent b96ba51 commit 193428d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/format/html/format-html-bootstrap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ function processAlternateFormatLinks(
454454
if (options.renderedFormats.length > 1) {
455455
let dlLinkTarget = doc.querySelector(`nav[role="doc-toc"]`);
456456
if (dlLinkTarget === null) {
457-
dlLinkTarget = doc.querySelector(kMarginSidebarId);
457+
dlLinkTarget = doc.getElementById(kMarginSidebarId);
458458
}
459459
if (dlLinkTarget) {
460460
const containerEl = doc.createElement("div");

0 commit comments

Comments
 (0)