fix: replace mb_strlen/mb_substr with strlen/substr — mbstring not available on prod

This commit is contained in:
Pontoporeia
2026-04-08 17:42:01 +02:00
parent 9eec5d3ac0
commit 7117934d07
4 changed files with 6 additions and 50 deletions

View File

@@ -185,7 +185,7 @@ class Parsedown
while (($beforeTab = strstr($line, "\t", true)) !== false)
{
$shortage = 4 - mb_strlen($beforeTab, 'utf-8') % 4;
$shortage = 4 - strlen($beforeTab) % 4;
$line = $beforeTab
. str_repeat(' ', $shortage)