Fix comments rendering in content editor
What does this MR do and why?
Serializing comments in content editor would add a backslash to all markdown content in the comment. This MR fixes it.
Screenshots or screen recordings
Before | After |
---|---|
Screen_Recording_2023-04-15_at_11.36.31 | Screen_Recording_2023-04-15_at_11.39.24 |
How to set up and validate locally
- Enable feature flag
:content_editor_on_issues
. Enable content editor on the bottom right corner using the editor mode switcher. - Create a new issue. Add an HTML comment using the
+
dropdown and add some markdown in it (like a bulleted list) - Switch between markdown and rich text several times.
- Notice there are no more unnecessary backslashes added.
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 #407488 (closed)