mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
docs: 匹配 markdown 中的 schema 正则兼容 windows (#7961)
This commit is contained in:
parent
adc4d157d5
commit
51d2e04328
@ -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 &&
|
||||
|
Loading…
Reference in New Issue
Block a user