[Code] Remove `<br>` fix
Closed this issue · 1 comments
justintadlock commented
Gutenberg is adding extra <br>
characters in. We can remove the replacement of those in src/Tools/CodeBlockHighlight.php
when this ticket is fixed:
justintadlock commented
After investigation, it seems that is an issue with the Prism.js library in use not respecting valid HTML.
More info here: WordPress/gutenberg#59548 (comment)
For this reason, I'm closing this because the fix is on our end and not Core. The existing fix needs to remain to ensure Prism is properly handling markup.