Skip to content

Commit

Permalink
added test for markdown image link underline
Browse files Browse the repository at this point in the history
  • Loading branch information
flurmbo committed Jan 23, 2019
1 parent d372fa0 commit b1de159
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,14 @@ suite('markdown.DocumentLinkProvider', () => {
assertRangeEqual(link1.range, new vscode.Range(0, 10, 0, 14));
assertRangeEqual(link2.range, new vscode.Range(0, 23, 0, 28));
});

test('should handle hyperlinked images', () => {
const links = getLinksForFile('[![alt text](image.jpg)](https://example.com)');
assert.strictEqual(links.length, 2);
const [link1, link2] = links;
assertRangeEqual(link1.range, new vscode.Range(0,25,0,44));
assertRangeEqual(link2.range, new vscode.Range(0,13,0,22));
});
});


0 comments on commit b1de159

Please sign in to comment.