Allow use of ** emphasis with Chinese/Japanese/Korean text in Markdown
What does this MR do and why?
Integrates Add support for CJK friendly emphasis (gitlab-org/ruby/gems/gitlab-glfm-markdown!113 - merged), enabling the cjk_friendly_emphasis extension in our Markdown parser.
This addresses an issue faced by users of CJK characters (viz. Chinese, Japanese, Korean), where the baseline CommonMark specification's rules surrounding emphasis don't account for them. As a result, emphasis is hard to use when writing in these languages, and requires awkward workarounds.
This issue has been taken care of over the past year by a developer who produced tats-u/markdown-cjk-friendly, an extension to the baseline CommonMark spec. This extension has been implemented in several Markdown parsers, including the one we rely on. This MR enables the option.
Before this MR, the following Markdown:
**わ〜い!強調記号ができます!**問題なし!
... would render as follows, with the asterisks visible in the text (and no emphasis):
<p data-sourcepos="1:1-1:61">**わ〜い!強調記号ができます!**問題なし!</p>
After this MR, it's rendered with emphasis correctly:
<p data-sourcepos="1:1-1:61"><strong data-sourcepos="1:1-1:46">わ〜い!強調記号ができます!</strong>問題なし!</p>
This will improve the usability of the product across all Markdown entry points for all users using these languages.
Added following a discussion in #f_markdown.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.