-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
List parse error #412
Comments
can u reproduce this on http://parsedown.org/demo |
it is working correctly in demo, this bug only happens when server has |
i'm not familiar with that server configuration |
mbstring.func_overload can cause issues: http://stackoverflow.com/questions/222630/should-i-use-multi-byte-overloading-mbstring-func-overload |
Several security libraries have had problems with this, as See this patch on the password_compat library: #40 diff line 220. |
Actually, this is a duplicate of #378 and the final comment features the same fix as mine. |
Hello, i found problems when using (un)ordered lists. Parser is rendering weird characters when using special characters like
č ž ť
. When i remove list, text is rendered correctly. Here is screenshot, input is on the left half of picture and result is on the right. I found that this issue is related with substr_replace. I changed code invendor/erusev/parsedown/Parsedown.php
on line 1461 to$markup = substr($markup, 0, $position - strlen($markup));
and now, everything is working. Also this problem happens only when server is having setmbstring.func_overload = 7
test text:
screenshot:
The text was updated successfully, but these errors were encountered: