Closed sangeeyeah closed 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.
@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 !
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.I set the
$parser->code_block_attr_on_parent = true;
in the php file where I am including the parsedown-extra-plugin.phpI also tried by changing the
$parser->code_block_attr_on_parent = false;
to true in the plugin file itself. I still am getting only the<pre>... </pre>
tag, I need to get<pre><code>..... </code></pre>
tags.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!