UNPKG

typedoc-plugin-markdown

Version:

A plugin for TypeDoc that enables TypeScript API documentation to be generated in Markdown.

10 lines (9 loc) 247 B
/** * Returns a heading in markdown format * @param level The level of the heading * @param text The text of the heading */ export function heading(level, text) { level = level > 6 ? 6 : level; return `${'#'.repeat(level)} ${text}`; }