< (less then) is shown escaped
Closed this issue · 3 comments
Gutenberg block (rust or generic)
< is shown escaped as &lf; see below
fn ans() -> Option<u32> {
Some(42)
}
fn main() -> Result<(), String> {
if 2 > 1 {
println!("The answer is {:?}", ans());
}
Ok(())
}
I do have crayon plugin install if it matters ( and it displays less then correctly in classic block)
Hi @izderadicka ,
i've tried to reproduce your issue but everything works fine within the testing environment
did you disabled crayon before you've started to use Enlighter ? They are not compatible as mentioned in the FAQ! Crayon will take over the EnlighterJS elements.
WIthout Crayon (EnlighterJS Highlighting)
best regards, Andi
Oh, I see now, that's bit unfortunate as I'm using crayon for old posts (pre v. 5), so disabling it is not an straightforward option, as it will require updates of old posts.
Thanks for explanation - is there any possibility for these two to coexist?
you have two options:
- fix the crayon code that it didn't take over the EnlighterJS elements (it selects all
pre
blocks) - convert your legacy posts to EnlighterJS codeblocks (manually or by using an automatic filter)