Skip to content

Commit ea55f57

Browse files
committed
reveal: improve fix for #6800 to not break decktape workflow. See #4677
1 parent 87453e6 commit ea55f57

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/format/reveal/format-reveal.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,14 @@ function revealHtmlPostprocessor(
470470
if (slideContentFromQuarto.childElementCount === 0) {
471471
slideContentFromQuarto.remove();
472472
} else {
473-
slide.parentNode?.appendChild(slideContentFromQuarto);
473+
for (const otherSlide of doc.querySelectorAll("section.slide")) {
474+
if (
475+
(otherSlide as Element).getAttribute("visibility") !== "hidden"
476+
) {
477+
otherSlide.appendChild(slideContentFromQuarto);
478+
break;
479+
}
480+
}
474481
}
475482
}
476483
}

0 commit comments

Comments
 (0)