We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 706730f commit 814f56dCopy full SHA for 814f56d
tools/doc/html.js
@@ -73,6 +73,9 @@ function processContent(content) {
73
if (content.includes('<h6>')) {
74
throw new Error('Cannot increment a level 6 header');
75
}
76
+ if (/<h[1-5][^>]/.test(content) {
77
+ throw new Error('Cannot parse header tag with attributes');
78
+ }
79
content.replace(/(?<=<\/?h)[1-5](?=>)/g, (level) => level + 1);
80
// Wrap h3 tags in section tags.
81
let firstTime = true;
0 commit comments