Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax highlighting for XML broken for Authors #142

Closed
eugenschindler opened this issue Apr 25, 2020 · 2 comments
Closed

Syntax highlighting for XML broken for Authors #142

eugenschindler opened this issue Apr 25, 2020 · 2 comments
Labels
[Pri] Normal [Status] Queued In the queue of issues to work on next. [Type] Bug

Comments

@eugenschindler
Copy link

When an author makes a syntax highlighter block and sets it to XML/XHTML/... then the highlighting is completely broken and even the text is not displayed properly.
If I set the same user to editor instead of author, the highlighting suddenly works.

I didn't check other languages than XML, but they may have the same problem.

Using WordPress 5.4.

@alexsanford
Copy link
Contributor

I can reproduce this for XML. For example, when I add the following code to a SyntaxHighlighter Code block in the Block Editor as an author:

<something />
<another />

Then I see this on the frontend:

Screen Shot 2020-05-13 at 13 49 24

When I change the user's role to Editor, and then change the block and save it, I see the following on the frontend:

Screen Shot 2020-05-13 at 13 53 28

@alexsanford alexsanford added [Pri] Normal [Status] Queued In the queue of issues to work on next. [Type] Bug labels May 13, 2020
@donnapep
Copy link
Contributor

donnapep commented Jun 4, 2021

This was fixed by #160.

@donnapep donnapep closed this as completed Jun 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Pri] Normal [Status] Queued In the queue of issues to work on next. [Type] Bug
Projects
None yet
Development

No branches or pull requests

3 participants