mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
Also ignore star checkboxes (#151029)
Fixes #150672 This makes our md link detection also ignore checkboxes like `* [x]` instead of just `- [x]`
This commit is contained in:
@@ -318,12 +318,15 @@ suite('markdown.DocumentLinkProvider', () => {
|
||||
const links = await getLinksForFile(joinLines(
|
||||
'- [x]',
|
||||
'- [X]',
|
||||
'- []',
|
||||
'- [ ]',
|
||||
'* [x]',
|
||||
'* [X]',
|
||||
'* [ ]',
|
||||
``,
|
||||
`[x]: http://example.com`
|
||||
));
|
||||
assert.strictEqual(links.length, 1);
|
||||
assertRangeEqual(links[0].range, new vscode.Range(4, 5, 4, 23));
|
||||
assertRangeEqual(links[0].range, new vscode.Range(7, 5, 7, 23));
|
||||
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user