Skip to content

Fix comments rendering in content editor

Himanshu Kapoor requested to merge 407488-ce-comment into master

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

  1. Enable feature flag :content_editor_on_issues. Enable content editor on the bottom right corner using the editor mode switcher.
  2. Create a new issue. Add an HTML comment using the + dropdown and add some markdown in it (like a bulleted list)
  3. Switch between markdown and rich text several times.
  4. 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.

Related to #407488 (closed)

Merge request reports

Loading