Skip to content

Commit 4e7666d

Browse files
committed
Fix relative links in markdown preview
1 parent 2854996 commit 4e7666d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extensions/markdown/src/markdownEngine.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export class MarkdownEngine {
113113
md.normalizeLink = (link: string) => {
114114
try {
115115
let uri = vscode.Uri.parse(link);
116-
if (!uri.scheme) {
116+
if (!uri.scheme && !uri.fragment) {
117117
// Assume it must be a file
118118
if (uri.path[0] === '/') {
119119
uri = vscode.Uri.file(path.join(vscode.workspace.rootPath, uri.path));

0 commit comments

Comments
 (0)