Skip to content

Commit

Permalink
Explicitly add link in JSDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
mjbvz committed Jul 18, 2023
1 parent 87baaea commit f2a1f00
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,10 @@ function convertLinkTags(
if (/^https?:/.test(text)) {
const parts = text.split(' ');
if (parts.length === 1) {
out.push(parts[0]);
out.push(`<${parts[0]}>`);
} else if (parts.length > 1) {
const linkText = escapeMarkdownSyntaxTokensForCode(parts.slice(1).join(' '));
out.push(`[${currentLink.linkcode ? '`' + linkText + '`' : linkText}](${parts[0]})`);
const linkText = parts.slice(1).join(' ');
out.push(`[${currentLink.linkcode ? '`' + escapeMarkdownSyntaxTokensForCode(linkText) + '`' : linkText}](${parts[0]})`);
}
} else {
out.push(escapeMarkdownSyntaxTokensForCode(text));
Expand Down

0 comments on commit f2a1f00

Please sign in to comment.