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 0b50bb4 commit 706730fCopy full SHA for 706730f
tools/doc/html.js
@@ -73,7 +73,7 @@ function processContent(content) {
73
if (content.includes('<h6>')) {
74
throw new Error('Cannot increment a level 6 header');
75
}
76
- content.replace(/(?<=<\/?h)[1-5](?=>)/g, (level) => ++level);
+ content.replace(/(?<=<\/?h)[1-5](?=>)/g, (level) => level + 1);
77
// Wrap h3 tags in section tags.
78
let firstTime = true;
79
return content
0 commit comments