docs: 匹配 markdown 中的 schema 正则兼容 windows (#7961)

This commit is contained in:
wujieli 2023-08-31 06:04:49 -05:00 committed by GitHub
parent adc4d157d5
commit 51d2e04328
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 &&