Skip to content

Commit 706730f

Browse files
Trottaduh95
andauthored
Update tools/doc/html.js
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent 0b50bb4 commit 706730f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/doc/html.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function processContent(content) {
7373
if (content.includes('<h6>')) {
7474
throw new Error('Cannot increment a level 6 header');
7575
}
76-
content.replace(/(?<=<\/?h)[1-5](?=>)/g, (level) => ++level);
76+
content.replace(/(?<=<\/?h)[1-5](?=>)/g, (level) => level + 1);
7777
// Wrap h3 tags in section tags.
7878
let firstTime = true;
7979
return content

0 commit comments

Comments
 (0)