docusaurus-plugin-typedoc-api
Version:
Docusaurus plugin that provides source code API documentation powered by TypeDoc.
12 lines (9 loc) • 346 B
JavaScript
;
function markdownLoader(markdown) {
const resolve = this.async();
// Remove the #/h1 titles as we handle it within our templates
const markdownWithoutTitle = markdown.replace(/^#\s+([^\n]+)/i, '');
return resolve?.(null, markdownWithoutTitle);
}
module.exports = markdownLoader;
//# sourceMappingURL=markdownLoader.js.map