File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -466,13 +466,17 @@ function revealHtmlPostprocessor(
466466 const slideContentFromQuarto = ( slide as Element ) . querySelector (
467467 ".quarto-auto-generated-content" ,
468468 ) ;
469- if ( slideContentFromQuarto ) {
469+ if (
470+ slideContentFromQuarto &&
471+ ( slide as Element ) . getAttribute ( "data-visibility" ) === "hidden"
472+ ) {
470473 if ( slideContentFromQuarto . childElementCount === 0 ) {
471474 slideContentFromQuarto . remove ( ) ;
472475 } else {
473476 for ( const otherSlide of doc . querySelectorAll ( "section.slide" ) ) {
474477 if (
475- ( otherSlide as Element ) . getAttribute ( "visibility" ) !== "hidden"
478+ ( otherSlide as Element ) . getAttribute ( "data-visibility" ) !==
479+ "hidden"
476480 ) {
477481 otherSlide . appendChild ( slideContentFromQuarto ) ;
478482 break ;
You can’t perform that action at this time.
0 commit comments