Fix issue with pipes in tables
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
- Turn on feature flag
:content_editor_on_issues
- Create a new issue. click "Switch to rich text". (You can also test content editor in wikis without a feature flag.)
- Create a new table using the table button on the toolbar.
- Add content with a pipe on the last column of the table. Example:
apples | oranges
. - 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.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #413425 (closed)
Edited by Himanshu Kapoor