| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -52,6 +52,14 @@ for (const link of toc.match(/<a.*?>/g)) { | |||
| 52 | 52 | .replace(/<a href="#(?!DEP[0-9]{4})([^"]+)"/g, (match, anchor) => { | |
| 53 | 53 | return `<a href="#${moduleName}_${anchor}"`; | |
| 54 | 54 | }) | |
| 55 | + // Update footnote id attributes on anchors | ||
| 56 | + .replace(/<a href="([^"]+)" id="(user-content-fn[^"]+)"/g, (match, href, id) => { | ||
| 57 | + return `<a href="${href}" id="${moduleName}_${id}"`; | ||
| 58 | + }) | ||
| 59 | + // Update footnote id attributes on list items | ||
| 60 | + .replace(/<(\S+) id="(user-content-fn-\d+)"/g, (match, tagName, id) => { | ||
| 61 | + return `<${tagName} id="${moduleName}_${id}"`; | ||
| 62 | + }) | ||
| 55 | 63 | // Prefix all links to other docs modules with those module names | |
| 56 | 64 | .replace(/<a href="((\w[^#"]*)\.html)#/g, (match, href, linkModule) => { | |
| 57 | 65 | if (!htmlFiles.includes(href)) return match; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments