Skip to content

Commit 40abe0e

Browse files
authored
Explicitly add link in JSDoc (microsoft#188182)
Fixes microsoft#188159
1 parent f821859 commit 40abe0e

File tree

1 file changed

+3
-3
lines changed
  • extensions/typescript-language-features/src/languageFeatures/util

1 file changed

+3
-3
lines changed

extensions/typescript-language-features/src/languageFeatures/util/textRendering.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,10 @@ function convertLinkTags(
188188
if (/^https?:/.test(text)) {
189189
const parts = text.split(' ');
190190
if (parts.length === 1) {
191-
out.push(parts[0]);
191+
out.push(`<${parts[0]}>`);
192192
} else if (parts.length > 1) {
193-
const linkText = escapeMarkdownSyntaxTokensForCode(parts.slice(1).join(' '));
194-
out.push(`[${currentLink.linkcode ? '`' + linkText + '`' : linkText}](${parts[0]})`);
193+
const linkText = parts.slice(1).join(' ');
194+
out.push(`[${currentLink.linkcode ? '`' + escapeMarkdownSyntaxTokensForCode(linkText) + '`' : linkText}](${parts[0]})`);
195195
}
196196
} else {
197197
out.push(escapeMarkdownSyntaxTokensForCode(text));

0 commit comments

Comments
 (0)