From 0a56d058bc75a97ce345cade5cc122ee48de6e24 Mon Sep 17 00:00:00 2001 From: Phil Date: Wed, 8 Sep 2021 21:00:35 +0200 Subject: [PATCH] feat: Inter-op with JSDoc `@example` caption --- src/lib/converter/factories/comment.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/converter/factories/comment.ts b/src/lib/converter/factories/comment.ts index a2aad06eb..e4f431399 100644 --- a/src/lib/converter/factories/comment.ts +++ b/src/lib/converter/factories/comment.ts @@ -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" ||