Skip to content

Allow writing text in angle brackets

Himanshu Kapoor requested to merge 336543-prose-looks-like-code into master

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

  1. Edit a wiki page
  2. Switch to rich text editor.
  3. Enter some content in angle brackets like <this>.
  4. Switch to markdown and back to rich text.
  5. 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.

Related to #336543 (closed)

Edited by Himanshu Kapoor

Merge request reports