mirror of
https://github.com/Microsoft/vscode
synced 2024-10-06 03:17:00 +00:00
#70254 - Set astrisk as a delimiter for URIs
This commit is contained in:
commit
820b2f6ec5
|
@ -264,6 +264,10 @@ export class LinkComputer {
|
|||
case CharCode.BackTick:
|
||||
chClass = (linkBeginChCode === CharCode.SingleQuote || linkBeginChCode === CharCode.DoubleQuote) ? CharacterClass.None : CharacterClass.ForceTermination;
|
||||
break;
|
||||
case CharCode.Asterisk:
|
||||
// `*` terminates a link if the link began with `*`
|
||||
chClass = (linkBeginChCode === CharCode.Asterisk) ? CharacterClass.ForceTermination : CharacterClass.None;
|
||||
break;
|
||||
default:
|
||||
chClass = classifier.get(chCode);
|
||||
}
|
||||
|
|
|
@ -202,4 +202,11 @@ suite('Editor Modes - Link Computer', () => {
|
|||
' http://[::1]:5000/connect/token '
|
||||
);
|
||||
});
|
||||
|
||||
test('issue #70254: bold links dont open in markdown file using editor mode with ctrl + click', () => {
|
||||
assertLink(
|
||||
'2. Navigate to **https://portal.azure.com**',
|
||||
' https://portal.azure.com '
|
||||
);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue