From de903962200d3fc175b1ebe48b42ac0e7ae035e0 Mon Sep 17 00:00:00 2001 From: yzane Date: Thu, 12 Mar 2020 01:53:09 +0900 Subject: [PATCH] Fix: markdown-include regular expression #178 #181 --- extension.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extension.js b/extension.js index 528508f..65ca5eb 100644 --- a/extension.js +++ b/extension.js @@ -281,7 +281,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: /:\[.+\]\((.+\..+)\)/i }); }