Plugin Support
Jay
(@bluejay77)
Hey @pixtweaks,
Are you using the block editor? If so, could you try using the Syntax block instead to see if the same issue persists?
Plugin Support
Jay
(@bluejay77)
Hi @pixtweaks,
Hi, after the last update, it stopped parsing shortcodes inside the highlighted area
I had this:
[text]<br />[cf_quic_cloud_ips]<br />[/text]
it showed only [cf_quic_cloud_ips] instead of the content of the shortcode.
I looked into this issue, and this is actually the intended behavior after we pushed a fix for the bug that parsed nested shortcode, as noted here:
https://github.com/Automattic/syntaxhighlighter/issues/32
You may add the below snippet to roll back this feature while remaining on the latest SyntaxHighlighter version.
add_filter( 'syntaxhighlighter_htmlresult', function( $content ) {
return str_replace('[', '[', $content);
});
We recommend using plugins like Code Snippets to add filters to your site: https://wordpress.org/plugins/code-snippets/
Hello @pixtweaks!
I just noticed that the snippet shared by @bluejay77 appeared weird in the browser, as it involves HTML entities. Here’s the snippet you should use: https://gist.githubusercontent.com/fjorgemota/8d8ad57079d15b278dcc8a1253b894f6/raw/6f35255bbaf0d73d13c4f12157c0bc0207ddbfb2/snippet.php
The rest of her comment still applies. =)
Thank you, @fjorgemota snippet works!
Hey @pixtweaks,
YAY! Thanks for letting us know about that π
I’m going to mark this thread as solved. If you have any further questions or need more help, you’re welcome to open another thread here. Cheers!