EnlighterJS / Plugin.WordPress

:package: Official WordPress Plugin of EnlighterJS
http://wordpress.org/plugins/enlighter/
GNU General Public License v2.0
115 stars 17 forks source link

Easy way to move from SyntaxHighlighter Evolved to Enlighter #340

Closed SKB-CGN closed 2 years ago

SKB-CGN commented 2 years ago

Hi, is there a way to perform that somehow?

AndiDittrich commented 2 years ago

it depends on the html format which is used to "mark" the blocks. for most highlighters the compatibility modes will work

SKB-CGN commented 2 years ago

What i have in the database is this:

Its a picture, because git reformats the text. 2021-10-14 21_06_48-_neu 2 - Notepad++

i disabled the old one. for sure.

What i have in sourcecode is: 2021-10-14 21_16_18-Shelly Schalter mit Xiaomi Aqara Bewegungsmelder in ioBroker schalten - Kreyenbo

AndiDittrich commented 2 years ago

the format looks quite easy, it can be added as compatibility mode within the next release. are you interested in testing ?

SKB-CGN commented 2 years ago

I am ready, when you are ;)

SKB-CGN commented 2 years ago

Hi, some news here? ;)

AndiDittrich commented 2 years ago

i didn't have any free resource atm to implement an additional compatibility mode. since the highlighter has also a Gutenberg block it becomes even more complicated...

SKB-CGN commented 2 years ago

Hi, do we have an update here?

AndiDittrich commented 2 years ago

EnlighterJS Gutenberg plugin v1.2.0 includes block transformation rulesets to convert the blocks via the editor. Migration filter will follow soon

AndiDittrich commented 2 years ago

edit: migration filter implementation is not possible with the Gutenberg Blocks - you have to convert the posts manually - sry