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 190b089 commit 2484ef6Copy full SHA for 2484ef6
1 file changed
tools/doc/html.mjs
@@ -233,7 +233,6 @@ export function preprocessElements({ filename }) {
233
}
234
235
heading = node;
236
- return [true, index + 1];
237
} else if (node.type === 'code') {
238
if (!node.lang) {
239
console.warn(
@@ -340,6 +339,10 @@ export function preprocessElements({ filename }) {
340
339
node.children.push({ type: 'html', value: '</div>' });
341
342
+
343
+ // In case we've inserted/removed node(s) before the current one, we need
344
+ // to make sure we're not visiting the same node again or skipping one.
345
+ return [true, index + 1];
346
});
347
};
348
0 commit comments