Skip to content

Commit

Permalink
Merge pull request #1679 from schlusslicht/feat/jsdoc-example-caption
Browse files Browse the repository at this point in the history
Allow usage of the JSDoc `@example` caption
  • Loading branch information
Gerrit0 committed Oct 2, 2021
2 parents 4886e41 + 0a56d05 commit 830d08c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/converter/factories/comment.ts
Expand Up @@ -224,6 +224,9 @@ export function parseComment(
if (tagName === "return") {
tagName = "returns";
}
if (tagName === "example") {
line = line.replace(/<\/?caption>/g, "");
}
if (
tagName === "param" ||
tagName === "typeparam" ||
Expand Down

0 comments on commit 830d08c

Please sign in to comment.