Closed raamdev closed 9 years ago
Partial fix. This is awaiting some updates in ezPHP before I will close it though. The reason for strip_md_indents()
in s2Clean, was actually to make Markdown parsing compatible with ezPHP.
Consider the following HTML markup when Markdown processing is enabled:
<?php if(is_user_logged_in()): ?>
<div>
<p>Hello user!</p>
</div>
<?php endif; ?>
Once ezPHP does its thing, Markdown runs. Given the indents for clarity (i.e., when using something like ezPHP), what you would end up with is
<pre><code><div>
<p>Hello user!</p>
</div></code></pre>
This is because Markdown thinks it is an indented code block, when in fact it was only indented because PHP tags were being used to wrap the block of code.
This only impacts a scenario where Markdown encounters a top-level code block. Anything nested would be unaffected, since Markdown does not parse block-level elements.
This has now been resolved. I'll let this settle-in over the weekend while I run more tests and look for any remaining issues. I'll update zencache.com once I feel confident there are no problems with the latest changes.
This has now been resolved.
Awesome! Thanks for fixing this!
This has been resolved at ZenCache.com now. As of this morning.
@jaswsinc Thanks!
For some reason, the list items in this KB Article are not getting processed as expected on ZenCache.com: https://zencache.com/wp-admin/post.php?post=1094&action=edit
Compare the preview on ZenCache.com with the markdown parsed on GitHub:
Notice how on ZenCache.com the list items all start with
1.
and on GitHub they properly enumerate1.
,2.
, etc.@jaswsinc writes...