You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Math block accepts latex input, which can include ampersands (they are a separator character). After saving the post as a user without unfiltered_html capability and then reloading the editor or viewing the front-end, the ampersands are displayed as & rather than as a separator character.
Step-by-step reproduction instructions
Open the editor as a user without unfiltered_html cap, e.g. a Contributor
Add math block
Paste in this latex: \begin{pmatrix} a & b \\ c & d \end{pmatrix}
Look at the block preview
Save the post
Reload the editor
You can now see that the preview is incorrect the ampersands are showing up as literally & rather than as a separator.
Screenshots, screen recording, code snippet
Screen.Recording.2026-04-29.at.09.24.58.mov
Environment info
Gutenberg trunk (8dd0b92 - what will be 23.1), also reproduced on 23.0 and with GB plugin deactivated.
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
Please confirm which theme type you used for testing.
Description
The Math block accepts latex input, which can include ampersands (they are a separator character). After saving the post as a user without
unfiltered_htmlcapability and then reloading the editor or viewing the front-end, the ampersands are displayed as&rather than as a separator character.Step-by-step reproduction instructions
unfiltered_htmlcap, e.g. a Contributor\begin{pmatrix} a & b \\ c & d \end{pmatrix}&rather than as a separator.Screenshots, screen recording, code snippet
Screen.Recording.2026-04-29.at.09.24.58.mov
Environment info
Gutenberg trunk (8dd0b92 - what will be 23.1), also reproduced on 23.0 and with GB plugin deactivated.
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.