Skip to content

Commit

Permalink
fixup! tools: udpate doc tools to accommodate GFM footnotes
Browse files Browse the repository at this point in the history
  • Loading branch information
Trott committed Oct 16, 2021
1 parent 9e69e7f commit d0779ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/doc/allhtml.mjs
Expand Up @@ -57,8 +57,8 @@ for (const link of toc.match(/<a.*?>/g)) {
return `<a href="${href}" id="${moduleName}_${id}"`;
})
// Update footnote id attributes on list items
.replace(/<li id="(user-content-fn-\d+)"/g, (match, id) => {
return `<li id="${moduleName}_${id}"`;
.replace(/<(\S+) id="(user-content-fn-\d+)"/g, (match, tagName, id) => {
return `<${tagName} id="${moduleName}_${id}"`;
})
// Prefix all links to other docs modules with those module names
.replace(/<a href="((\w[^#"]*)\.html)#/g, (match, href, linkModule) => {
Expand Down

0 comments on commit d0779ec

Please sign in to comment.