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 91ee128 commit 849213eCopy full SHA for 849213e
1 file changed
tools/doc/allhtml.mjs
@@ -53,9 +53,8 @@ for (const link of toc.match(/<a.*?>/g)) {
53
return `<a href="#${moduleName}_${anchor}"`;
54
})
55
// Prefix all links to other docs modules with those module names
56
- .replace(/<a href="(\w[^#"]*)#/g, (match, href) => {
+ .replace(/<a href="((\w[^#"]*)\.html)#/g, (match, href, linkModule) => {
57
if (!htmlFiles.includes(href)) return match;
58
- const linkModule = href.replace(/\.html$/, '');
59
return `<a href="#${linkModule}_`;
60
61
.trim() + '\n';
0 commit comments