diff --git a/scripts/markdownPlugin.ts b/scripts/markdownPlugin.ts index a1f7d6df3..3631f9fd2 100644 --- a/scripts/markdownPlugin.ts +++ b/scripts/markdownPlugin.ts @@ -152,7 +152,7 @@ function markdown2js(content: string, file: string) { return _; }) .replace( - /```(schema|html)(?::(.*?))?\n([\s\S]*?)```/g, + /```(schema|html)(?::(.*?))?[\n|\r\n]([\s\S]*?)```/g, function (_, lang, attr, code) { const setting: any = {}; attr &&