Editing code blocks in WP 6.5 may trigger unwanted line break escaping
-
Hey
Just a heads up. Editing existing code snippets in WP 6.5 beta 3 or the current Gutenberg Plugin version, appears to replace newlines with br tags, and escape other html entities. Resulting in formatted code like this:
… looking like this:
Issue created on Github:
https://github.com/WordPress/gutenberg/issues/59548
I’m using Prism.JS for my code highlighting, but just verified that the same issue occurs with the Prismatic plugin.
It’s important to note, that these changes to the content of your code block, are made when you edit the blocks. So just updating to WP 6.5 will not trigger the issue. You must edit and save a code block first.Is this something you can reproduce? I noticed you’ve tested with WP 6.5 beta. If so, please pitch in. It seems like this change is intentional.
- The topic ‘Editing code blocks in WP 6.5 may trigger unwanted line break escaping’ is closed to new replies.