mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 03:54:24 +01:00
Smooth markdown scrolling
This commit is contained in:
@@ -131,11 +131,8 @@ export class MarkdownEngine {
|
||||
private addLinkValidator(md: any): void {
|
||||
const validateLink = md.validateLink;
|
||||
md.validateLink = (link: string) => {
|
||||
if (validateLink(link)) {
|
||||
return true;
|
||||
}
|
||||
// support file:// links
|
||||
return link.indexOf('file:') === 0;
|
||||
return validateLink(link) || link.indexOf('file:') === 0;
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user