taufik-nurrohman / parsedown-extra-plugin

Configurable Markdown to HTML converter with Parsedown Extra.
MIT License
60 stars 13 forks source link

<code> not being added to <pre> tags #9

Closed sangeeyeah closed 6 years ago

sangeeyeah commented 6 years ago

The plugin is working beautifully for the other functions that I need (nofollow, blank). However, the <code> tag is not getting added to the <pre> tag.

Please advise on how to get the <code> tags.

I need the <pre><code>..... </code></pre> tags to make any css / javascript syntax highlighter to work. It is not working with just the <pre> tags.

Thank you for the great plugin!

taufik-nurrohman commented 6 years ago

Download this repository then put it in your local machine.

Visit http://localhost/parsedown-extra-plugin/test.php then click the _test.code_blockclass.php link, then check the source code. Is the <code> tag still there? If so, it means that there was something removes your code tags but not from this plugin.

sangeeyeah commented 6 years ago

@tovic You are right. Something else is stripping out the <code> tags. For now I managed a fix in a 'ugly' manner by replacing <pre> tags before the final output. Will have to do a detailed check later to see what is making the changes only to this tag. Thank you for the beautiful parser !