diff --git a/docs/js/extra.js b/docs/js/extra.js index fef3df6c..596fe815 100644 --- a/docs/js/extra.js +++ b/docs/js/extra.js @@ -38,7 +38,8 @@ var nodemcu = nodemcu || {}; } function createTocTableRow(func, intro) { // fragile attempt to auto-create the in-page anchor - var href = func.replace(/\.|:/g, '').replace('()', '').replace(' --', '-').replace(/ /g, '-'); + // good tests: file.md, + var href = func.replace(/[\.:\(\)]/g, '').replace(/ --|, | /g, '-'); var link = '' + func + ''; return '