Markdown reference links starting with ^ should not be clickable (#108015)

Co-authored-by: mmacovei <mmacovei@sfu.ca>
This commit is contained in:
Nafana
2020-10-07 23:38:17 -07:00
committed by GitHub
parent 57fc7c21ac
commit df59ceb026
2 changed files with 7 additions and 1 deletions

View File

@@ -138,6 +138,12 @@ suite('markdown.DocumentLinkProvider', () => {
assertRangeEqual(link4.range, new vscode.Range(0, 50, 0, 59));
}
});
// #107471
test('Should not consider link references starting with ^ character valid', () => {
const links = getLinksForFile('[^reference]: https://example.com');
assert.strictEqual(links.length, 0);
});
});