mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 03:54:24 +01:00
Fix relative links in markdown preview
This commit is contained in:
@@ -113,7 +113,7 @@ export class MarkdownEngine {
|
||||
md.normalizeLink = (link: string) => {
|
||||
try {
|
||||
let uri = vscode.Uri.parse(link);
|
||||
if (!uri.scheme) {
|
||||
if (!uri.scheme && !uri.fragment) {
|
||||
// Assume it must be a file
|
||||
if (uri.path[0] === '/') {
|
||||
uri = vscode.Uri.file(path.join(vscode.workspace.rootPath, uri.path));
|
||||
|
||||
Reference in New Issue
Block a user