Skip to content

Fix issue with pipes in tables

Himanshu Kapoor requested to merge 413425-ce-pipes into master

What does this MR do and why?

Fix issue with pipes in tables

In rich text editor, escape a pipe character if rendered in a markdown table cell.

Changelog: fixed

Screenshots

Before After
Screen Recording 2023-06-08 at 20.02.31.mov Screen Recording 2023-06-08 at 20.00.55.mov

Setup instructions

  1. Turn on feature flag :content_editor_on_issues
  2. Create a new issue. click "Switch to rich text". (You can also test content editor in wikis without a feature flag.)
  3. Create a new table using the table button on the toolbar.
  4. Add content with a pipe on the last column of the table. Example: apples | oranges.
  5. Save. Notice that the pipe is preserved. Previously all content after the pipe would be lost.

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

Edited by Himanshu Kapoor

Merge request reports