diff --git a/extension.js b/extension.js index e0e28a2..dd1e8b1 100644 --- a/extension.js +++ b/extension.js @@ -778,8 +778,8 @@ function fixHref(resource, href) { return vscode.Uri.file(path.join(root.uri.fsPath, href)).toString(); } - // Otherwise look relative to the markdown file - return vscode.Uri.file(path.join(path.dirname(resource.fsPath), href)).toString(); + // Otherwise, leave it as is + return href; } catch (error) { showErrorMessage('fixHref()', error); } diff --git a/package.json b/package.json index de45a38..78fffb0 100644 --- a/package.json +++ b/package.json @@ -175,7 +175,7 @@ "markdown-pdf.stylesRelativePathFile": { "type": "boolean", "default": false, - "description": "If markdown-pdf.stylesRelativePathFile option is set to true, the relative path set with markdown-pdf.styles is interpreted as relative from the file" + "description": "If checked, the relative paths in markdown-pdf.styles are referenced by the output HTML as is" }, "markdown-pdf.includeDefaultStyles": { "type": "boolean",