We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f46fca commit 507f1dbCopy full SHA for 507f1db
3 files changed
tools/doc/allhtml.mjs
@@ -52,6 +52,14 @@ for (const link of toc.match(/<a.*?>/g)) {
52
.replace(/<a href="#(?!DEP[0-9]{4})([^"]+)"/g, (match, anchor) => {
53
return `<a href="#${moduleName}_${anchor}"`;
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
63
// Prefix all links to other docs modules with those module names
64
.replace(/<a href="((\w[^#"]*)\.html)#/g, (match, href, linkModule) => {
65
if (!htmlFiles.includes(href)) return match;
0 commit comments