fix: revert refactor in markdown-kroki and plantuml modules (#2619)

This commit is contained in:
Nicolas Giard
2020-10-25 23:26:55 -04:00
committed by GitHub
parent f56b6ee0c0
commit 04a1896811
2 changed files with 14 additions and 4 deletions

View File

@@ -73,8 +73,13 @@ module.exports = {
continue
}
const i = closeMarker.findIndex(item => item !== state.src[start + i])
const closeMarkerMatched = i !== -1
let closeMarkerMatched = true
for (i = 0; i < closeMarker.length; ++i) {
if (closeMarker[i] !== state.src[start + i]) {
closeMarkerMatched = false
break
}
}
if (!closeMarkerMatched) {
continue