Skip to content

Commit 05e4dcb

Browse files
committed
strip "Compatible with layerId" event table from content
1 parent c9b1afc commit 05e4dcb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎typedoc-plugin.js‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,9 @@ export function load(app) {
462462
// Strip breadcrumb line
463463
content = content.replace(/^\[.+?\]\(.+?\)\s*\/\s*.+\n+/, "");
464464

465+
// Strip the "Compatible with layerId" event table inherited from MapLibre's on()
466+
content = content.replace(/\| Event\s+\| Compatible with `layerId`[^\n]*\n\|[-| ]+\n(?:\|[^\n]+\n)+\n?/gm, "");
467+
465468
// Strip "Extends" / "Implements" sections
466469
content = content.replace(/^#{1,6} Extends\n\n(?:- .+\n)+\n?/gm, "");
467470
content = content.replace(/^#{1,6} Implements\n\n(?:- .+\n)+\n?/gm, "");

0 commit comments

Comments
 (0)