fix markdown off by 1 error

This commit is contained in:
MathMan05 2025-04-25 17:09:37 -05:00
parent 21e0c8ce3e
commit 96f6fc68a3

View file

@ -312,7 +312,7 @@ class MarkDown {
}
if (
find === count &&
(count != 1 || txt[j + 1] === " " || txt[j + 1] === "\n" || txt[j + 1] === undefined)
(count != 1 || txt[j] === " " || txt[j] === "\n" || txt[j] === undefined)
) {
appendcurrent();
i = j;