Skip to content

Commit 97c3235

Browse files
Strip header from WebIDL blocks
1 parent ca4a0da commit 97c3235

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/idlfetcher.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ function extractIDL(dom: DocumentFragment) {
7171
}
7272
return !previous.classList.contains("atrisk") && !previous.textContent!.includes("IDL Index");
7373
});
74+
elements.forEach(el => {
75+
el.querySelector("span.idlHeader")?.remove();
76+
});
7477
return elements.map(element => trimCommonIndentation(element.textContent!).trim()).join('\n\n');
7578
}
7679

0 commit comments

Comments
 (0)