fix uri fragment slugification #94508 (#94655)

This commit is contained in:
Ilia Pozdnyakov
2020-04-10 04:21:18 +07:00
committed by GitHub
parent 95bc288b23
commit f3a31a4eeb
2 changed files with 16 additions and 2 deletions

View File

@@ -32,3 +32,15 @@ export function getUriForLinkWithKnownExternalScheme(link: string): vscode.Uri |
export function isOfScheme(scheme: string, link: string): boolean {
return link.toLowerCase().startsWith(scheme);
}
export const MarkdownFileExtensions: readonly string[] = [
'.md',
'.mkd',
'.mdwn',
'.mdown',
'.markdown',
'.markdn',
'.mdtxt',
'.mdtext',
'.workbook',
];