File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
quartz/components/scripts Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ function handleFootnote(data: string, separator: string) {
165165
166166 const hrefRegex = / < s u p > < a h r e f = " ( # u s e r - c o n t e n t - f n [ ^ " ] + ) " / g
167167 slide = slide . replace ( hrefRegex , ( ) => {
168- return `<sup><a href="${ window . location . pathname } #${ slides . length } "`
168+ return `<sup><a href="${ window . location . pathname } ${ window . location . search } #${ slides . length } "`
169169 } )
170170
171171 // const refRegex = /<sup><a\s+[^>]*?href="([^"]+)"[^>]*?id="user-content-fnref-([\d-]+)"[^>]*?>.*?<\/a><\/sup>/g
@@ -180,7 +180,7 @@ function handleFootnote(data: string, separator: string) {
180180 / < a \s + ( [ ^ > ] * ?) h r e f = " ( # u s e r - c o n t e n t - f n [ ^ " ] + ) " ( [ ^ > ] * ) > / g,
181181 ( fullMatch , beforeHref , href , afterHref ) => {
182182 if ( refIndexMap . has ( href ) ) {
183- return `<a ${ beforeHref } href="${ window . location . pathname } #${ refIndexMap . get ( href ) } "${ afterHref } >`
183+ return `<a ${ beforeHref } href="${ window . location . pathname } ${ window . location . search } #${ refIndexMap . get ( href ) } "${ afterHref } >`
184184 }
185185 return fullMatch
186186 }
You can’t perform that action at this time.
0 commit comments