Skip to content

Allow easily escaping inline code in content editor

Himanshu Kapoor requested to merge 406723-code-blocks-ce into master

What does this MR do and why?

Make inline code in content editor non-inclusive so it can be escaped by pressing spacebar or any other key at the end of the code block text.

Screenshots or screen recordings

Before After
Screen_Recording_2023-04-13_at_11.41.39 Screen_Recording_2023-04-13_at_11.40.22

How to set up and validate locally

  1. Access content editor. Content editor (rich text editor) is available in wikis globally, and in issue/MR comments behind a feature flag :content_editor_on_issues. Click "Viewing markdown" at bottom right and select "Rich text" from the menu to switch to content editor.
  2. Create an inline code block, and try to enter regular text after the code block. Previously it wasn't possible.

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 #406723 (closed)

Merge request reports