diff --git a/demo/src/lib/api/index.ts b/demo/src/lib/api/index.ts index 650b2e61f2..93d3f2d46a 100644 --- a/demo/src/lib/api/index.ts +++ b/demo/src/lib/api/index.ts @@ -254,10 +254,10 @@ async function docsToReadme( if (line.startsWith('##') || line.startsWith('***')) { toInclude = true; } - if (line.match(/^##(#)*\s(Extends|Inherited from|Defined in|Overrides)/)) { + if (line.match(/^##(#)*\s(Extends|Inherited from|Overrides)/)) { toInclude = false; } - if (toInclude) { + if (toInclude && !line.startsWith('Defined in')) { fileContent.push( line .replace(/^(#(#+).*)\(\)$/, '$1')