From 51d2e0432814dd9eb674eb690951cfe79fa4e062 Mon Sep 17 00:00:00 2001 From: wujieli <66515269+wujieli0207@users.noreply.github.com> Date: Thu, 31 Aug 2023 06:04:49 -0500 Subject: [PATCH] =?UTF-8?q?docs:=20=E5=8C=B9=E9=85=8D=20markdown=20?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=20schema=20=E6=AD=A3=E5=88=99=E5=85=BC?= =?UTF-8?q?=E5=AE=B9=20windows=20(#7961)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/markdownPlugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 &&