Skip to content

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

2022-05-18_12.02.26

How to set up and validate locally

  1. Enable the preserve_unchanged_markdown feature flag.
  2. Edit a Wiki page in your local environment
  3. Add the following Markdown snippet to the classic editor:
    ~~striked text~~ and <del>striked text</del>
  4. Switch to the "Rich text" mode. The text should have the correct striked format applied.
  5. 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.

#360947 (closed)

Merge request reports