make parse block to trim leading and trailing whitespace in parse function

This commit is contained in:
kwaroran
2024-04-03 19:19:15 +09:00
parent 28d4ee93cf
commit 8f8441e529

View File

@@ -922,7 +922,10 @@ function blockEndMatcher(p1:string,type:blockMatch,matcherArg:matcherArg):string
return ''
}
case 'parse':{
return p1.trim()
const trimedLines = p1.split('\n').map((v) => {
return v.trim()
}).join('\n').trim()
return trimedLines
}
case 'parse-pure':{
return p1