mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 12:04:04 +01:00
@@ -188,10 +188,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));
|
||||
|
||||
Reference in New Issue
Block a user