File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -783,23 +783,6 @@ const handleAnchors = (doc: Document) => {
783783 const codeLineAnchorEl = codeLineAnchor as Element ;
784784 codeLineAnchorEl . removeAttribute ( "href" ) ;
785785 } ) ;
786-
787- // https://github.com/quarto-dev/quarto-cli/issues/3533
788- // redirect anchors to the slide they refer to
789- const anchors = doc . querySelectorAll ( "a[href^='#/']" ) ;
790- for ( const anchor of anchors ) {
791- const anchorEl = anchor as Element ;
792- const href = anchorEl . getAttribute ( "href" ) ;
793- if ( href ) {
794- const target = doc . getElementById ( href . replace ( / ^ # \/ / , "" ) ) ;
795- if ( target ) {
796- const slide = findParentSlide ( target ) ;
797- if ( slide && slide . getAttribute ( "id" ) ) {
798- anchorEl . setAttribute ( "href" , `#/${ slide . getAttribute ( "id" ) } ` ) ;
799- }
800- }
801- }
802- }
803786} ;
804787
805788const handleInterColumnDivSpaces = ( doc : Document ) => {
You can’t perform that action at this time.
0 commit comments