-
Notifications
You must be signed in to change notification settings - Fork 29
Fenced code: Some combinations of newlines and closing php tag do not html-escape characters #4
Comments
This is definitely a security problem that needs fixing. Thanks for pointing this out. Cheers, Egil. |
This appears to be related to an inconvenient overlap between the Markdown Extra and Markdown Extended parsers and backtick-fenced code blocks versus backtick-enclosed code spans. We've made a change (crowdfavorite/php-markdown-extra-extended@92612c0) that I believe addresses the behavior properly in Extended mode while leaving the Extra mode parsing untouched, and I cannot at this time speak to the proper behavior of Extra in similar situations. |
I think issue still remains. If render below in Markdown Extended parser it returns empty.
In DOM above code comes with comment line;
|
This is definitely still an issue. |
I do not have any free time to contribute to this project the foreseeable future. If anybody can contribute a fix I will be happy to merge it into the project. |
This bug is solved in my fork: PHP Markdown Next
by
|
Sorry, looks like I have another realization of |
Thanks @nazar-pc will checkout your fork. |
The following text will render okay:
But this doesn't:
And produce this unescaped output
The text was updated successfully, but these errors were encountered: