Enlighter not picking pre tags in compatibility
-
Hello, firstly let me thank you for developing this awesome plugin.
I’m experiencing an unexpected behavior with Enlighter while transitioning away from Crayon. The behavior I’m used to with Crayon is that every pre or code tag is automatically recognized and its language guessed without me specifying it.
I’m trying to reproduce the same behavior with Enlighter, but up until now I’ve been unsuccessful.
With a bit of search I discovered this function is implemented under the name of “Compatibility mode”. So I enabled the compatibility mode on the_content to no avail. I tried flushing caches, reloading without caches but I can’t seem to be able to isolate the problem.
I can confirm Enlighter is loaded and works fine using the EnlighterJSRAW class and the data attribute.
Although I can get Enlighter to work with the custom class and data attribute, replacing each and every pre/code tag within my posts is not a solution for me.Thank you for your help.
P.s. of course Crayon has been disabled.
The page I need help with: [log in to see the link]
- The topic ‘Enlighter not picking pre tags in compatibility’ is closed to new replies.