Browse Source
fix: revert refactor in markdown-kroki and plantuml modules (#2619)
pull/2638/head
2.5.170
Nicolas Giard
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
14 additions and
4 deletions
-
server/modules/rendering/markdown-kroki/renderer.js
-
server/modules/rendering/markdown-plantuml/renderer.js
|
|
@ -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 |
|
|
|
|
|
@ -74,8 +74,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 |
|
|
|