Allow writing text in angle brackets
What does this MR do and why?
Allow writing text in angle brackets
In content editor, allow writing prose that looks like code. So, typing should work fine by escaping the < and > in the text by adding backslashes.
Changelog: changed
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
Screen_Recording_2023-06-10_at_01.05.29 | Screen_Recording_2023-06-10_at_01.05.09 |
How to set up and validate locally
- Edit a wiki page
- Switch to rich text editor.
- Enter some content in angle brackets like
<this>
. - Switch to markdown and back to rich text.
- Notice that
<this>
is retained because it was escaped with backslashes. Previously it would disappear.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #336543 (closed)
Edited by Himanshu Kapoor