Skip to content

Commit

Permalink
Fix: markdown-include regular expression yzane#178 yzane#181
Browse files Browse the repository at this point in the history
  • Loading branch information
yzane committed Mar 11, 2020
1 parent 042a541 commit de90396
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
}

Expand Down

0 comments on commit de90396

Please sign in to comment.