Description
When pasting bbcode into rich text editor, brackets are escaped as \[ and \]. However, this makes it a valid display math block, so it is erroneously rendered as math.
Reproduction
-
Copy the following text
[details="summary"] some text [/details] -
Paste into something like notepad.exe
-
Copy from notepad.exe to remove formatting information
-
Paste into rich text editor
-
The text should display as code; uncheck the “code” toggle button to make it plain text
Alternatively, you can type the bbcode shown above manually into the rich text editor.
Expected behaviour
Either
summary
some text
which is fine, since that is the original meaning of the bbcode, or
[details=“summary”]
some text
[/details]
which is also fine, since that is what you see in the wysiwyg editor.
Actual behaviour
details="summary"some text
/details
which is not fine.