Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
const headings = schemaNames(schemas)
const toc = [
{
ul: headings.map(tocHeading),
},
]
let list = (title as any[]).concat(toc).concat(fragments)
if (formats) {
list = list.concat(documentCustomFormats(formats)).concat(titleLink)
}
return json2md(list)
}