The return `` in the map processing returns "" when processing the interface definition.
All interfaces code in the documentation then shows as empty blocks
The output shows up when the lines are removed/commented out
const newContent = lines
.map((line) => {
const trimmed = line.trim();
const nameMatch = trimmed.match(
/^([A-Za-z_][A-Za-z0-9_]*)/
);
if (!nameMatch && !trimmed.endsWith("{") && trimmed != "}") {
return `<span class="method-line">${line}</span>`;
>>> // } else {
>>> // return ``;
}
const name = nameMatch[1];
const isPriv = isPrivate(name);
return `<span class="method-line${
isPriv ? " hidden private" : ""
}" data-name="${name}">${line}</span><br />`;
})
.join("");