Content Editor: Support strikethrough in client-side Markdown parser
What does this MR do and why?
-
NOTICE: This change is behind a the
preserve_unchanged_markdown
feature flag. - Context: This change is part of a larger effort to preserve unchanged Markdown in the Content Editor. For this effort, we need to support client-side parsing of Markdown content.
It implements support for Strikethrough in the client-side Markdown parser being implemented in the Content Editor. It ensures that the original syntax of Strikethrough text is always preserved.
Screenshots or screen recordings
How to set up and validate locally
- Enable the
preserve_unchanged_markdown
feature flag. - Edit a Wiki page in your local environment
- Add the following Markdown snippet to the classic editor:
~~striked text~~ and <del>striked text</del>
- Switch to the "Rich text" mode. The text should have the correct striked format applied.
- Switching back to source editing displays the original markdown you introduced in step 3.
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.