diff --git a/extension.js b/extension.js index e0e28a2..20fbf5e 100644 --- a/extension.js +++ b/extension.js @@ -282,7 +282,7 @@ function convertMarkdownToHtml(filename, type, text) { if (vscode.workspace.getConfiguration('markdown-pdf')['markdown-it-include']['enable']) { md.use(require("markdown-it-include"), { root: path.dirname(filename), - includeRe: /:\[.+\]\((.+\..+)\)/i + includeRe: /:\[.+\]\((?!https?:|ftp:)(.+\..+)\)/i }); } @@ -898,4 +898,4 @@ function init() { } catch (error) { showErrorMessage('init()', error); } -} +} \ No newline at end of file