From f6d7607b1c63dccd92c7333d6f86ee628bb25c38 Mon Sep 17 00:00:00 2001 From: stevezyyang Date: Tue, 22 Jun 2021 10:29:11 +0800 Subject: [PATCH] build(docs): fix markdown-it-include --- docs/.vuepress/config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index e4b26e1..d7158ee 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -33,7 +33,8 @@ module.exports = { extendMarkdown: (md) => { md.use(require('markdown-it-include'), { root: './docs/', - includeRe: /<\[include\]\((.+)\)/i, + includeRe: /<\[include\](.+)/i, + bracesAreOptional: true, }) }, },