* Extracts documented property names from the Properties table(s) in an MDX file.
(docFilePath: string)
| 261 | * Extracts documented property names from the Properties table(s) in an MDX file. |
| 262 | */ |
| 263 | function extractDocumentedInputs(docFilePath: string): string[] { |
| 264 | const content = fs.readFileSync(docFilePath, 'utf-8'); |
| 265 | |
| 266 | // Match Properties table headers with various column formats: |
| 267 | // | Property | Type | Default | Description | |
| 268 | // | Property | Type | Description | |
| 269 | const headerPattern = /^\|\s*Property\s*\|.*Type\s*\|/i; |
| 270 | return parseTableColumn(content, headerPattern); |
| 271 | } |
| 272 | |
| 273 | /** |
| 274 | * Extracts documented event names from the Events table(s) in an MDX file. |
no test coverage detected