(
level: number,
{ id, title, table }: (typeof tables)[number],
)
| 773 | // Property anchors are prefixed with the table's name, so they stay unique when two tables on |
| 774 | // the same page list the same properties. |
| 775 | const section = ( |
| 776 | level: number, |
| 777 | { id, title, table }: (typeof tables)[number], |
| 778 | ) => |
| 779 | `<a id="${id}"></a>\n\n${'#'.repeat(level)} ${title}\n\n${table.replace( |
| 780 | /<a id="([^"]+)"><\/a>/g, |
| 781 | `<a id="${id.replace(/-properties$/, '')}-$1"></a>`, |
| 782 | )}` |
| 783 | |
| 784 | if (!isOverloaded) { |
| 785 | // Put each table at the end of the section it describes, so nothing is repeated. |
no outgoing calls
no test coverage detected