Affected URLS
Problem
Those links refer to an HTML element with the ID __dirname or __filename instead of using the IDs without the underscores, because when the documentation content is generated, it appears to remove the underscores and generates IDs without underscores. You can find those links on this page: https://nodejs.org/docs/latest/api/globals.html#global-objects
The modules.md file also references __dirname and __filename several times, so this page also contains broken anchor links: https://nodejs.org/docs/latest/api/modules.html
Possible Cause
I think the problem is related to this:
|
{ from: /^-+(?!-*$)/g, to: '' }, // Remove any leading hyphens |
I was thinking about changing the link in the files listed below, but I think that would break the link (at least in GitHub's Markdown editor), so that wouldn't be a good solution.
https://github.com/nodejs/node/blob/61102cdbb3d59155ad5bb4fc9419627a31e63f7a/doc/api/globals.md?plain=1#L14-L30
Affected URLS
Problem
Those links refer to an HTML element with the ID
__dirnameor__filenameinstead of using the IDs without the underscores, because when the documentation content is generated, it appears to remove the underscores and generates IDs without underscores. You can find those links on this page: https://nodejs.org/docs/latest/api/globals.html#global-objectsThe modules.md file also references
__dirnameand__filenameseveral times, so this page also contains broken anchor links: https://nodejs.org/docs/latest/api/modules.htmlPossible Cause
I think the problem is related to this:
doc-kit/src/generators/metadata/constants.mjs
Line 12 in d9697c7
I was thinking about changing the link in the files listed below, but I think that would break the link (at least in GitHub's Markdown editor), so that wouldn't be a good solution.
https://github.com/nodejs/node/blob/61102cdbb3d59155ad5bb4fc9419627a31e63f7a/doc/api/globals.md?plain=1#L14-L30