UNPKG

typedoc-plugin-markdown

Version:

Generates TypeScript API documentation as Markdown.

10 lines (9 loc) 261 B
export function getDescriptionForComment(comment) { if (comment?.summary?.length) { return this.helpers .getCommentParts(comment.summary) ?.split(/(\r?\n){2}/)[0] .replace(/\r?\n/g, ' '); } return null; }