Skip to content

Fix inline code serialization in rich text editor

Himanshu Kapoor requested to merge himkp-fix-code into master

What does this MR do and why?

Fix inline code serialization in rich text editor

When an inline code block in rich text editor contains backticks, it breaks on serialization. Now such inline code blocks will be serialized using double backticks.

Changelog: fixed

Screenshots and steps

  1. Type in rich text editor: ```js
  2. Do not press Enter, else it will create a code block.
  3. Select all.
  4. Click "Insert code" button in the toolbar.
  5. Save.
Before After
Contents of comment after save image image

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Himanshu Kapoor

Merge request reports

Loading