fix: revert refactor in markdown-kroki and plantuml modules (#2619)
This commit is contained in:
parent
f56b6ee0c0
commit
04a1896811
@ -73,8 +73,13 @@ module.exports = {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
const i = closeMarker.findIndex(item => item !== state.src[start + i])
|
let closeMarkerMatched = true
|
||||||
const closeMarkerMatched = i !== -1
|
for (i = 0; i < closeMarker.length; ++i) {
|
||||||
|
if (closeMarker[i] !== state.src[start + i]) {
|
||||||
|
closeMarkerMatched = false
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!closeMarkerMatched) {
|
if (!closeMarkerMatched) {
|
||||||
continue
|
continue
|
||||||
|
@ -74,8 +74,13 @@ module.exports = {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
const i = closeMarker.findIndex(item => item !== state.src[start + i])
|
let closeMarkerMatched = true
|
||||||
const closeMarkerMatched = i !== -1
|
for (i = 0; i < closeMarker.length; ++i) {
|
||||||
|
if (closeMarker[i] !== state.src[start + i]) {
|
||||||
|
closeMarkerMatched = false
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!closeMarkerMatched) {
|
if (!closeMarkerMatched) {
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user