Fix for issue #35245

This commit is contained in:
Micah Smith
2019-06-12 14:30:54 -04:00
parent 0a489fdcf7
commit 01f7276b7e
2 changed files with 11 additions and 3 deletions

View File

@@ -72,6 +72,14 @@ suite('markdown.DocumentLinkProvider', () => {
assertRangeEqual(link.range, new vscode.Range(0, 6, 0, 25));
});
// #35245
test('Should handle links with escaped characters in name', () => {
const links = getLinksForFile('a [b\\]](./file)');
assert.strictEqual(links.length, 1);
const [link] = links;
assertRangeEqual(link.range, new vscode.Range(0, 8, 0, 14));
});
test('Should handle links with balanced parens', () => {
{