Open wkingnet opened 2 years ago
Yes, we have this problem now. You are right. It is because we use the same pre tag as it was in Crayon even before Gutenberg. I don't know how to fix it right now. I should somehow difference between pre for preformatted and pre form crayon in Gutenberg and use old logic for Classic Editor.
As workaround you can try to use
<pre class="crayon:false"
for preformatted blocks
But I will fix this problem later. I suffer from it too.
I noticed that Crayon changed the pre-formatted styles in wordpress.
Viewed using a code editor, the wp:preformatted block format is
and Crayon code block format is
I think the problem is that both have the pre tag, but how to keep wp:preformatted default?