Unverified Commit 04a18968 authored by Nicolas Giard's avatar Nicolas Giard Committed by GitHub

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

parent f56b6ee0
...@@ -73,8 +73,13 @@ module.exports = { ...@@ -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 = { ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment