Fix system note difference highlighting
What does this MR do and why?
When rendering a changed title system note, it attempts to render those titles with our markdown pipeline. However this can cause a variety of strange situations. For example, if the title is
#55 title change and lots more
and it's changed to
#55 title change _and_ x^2 lots more
Solution is to force it into a code block and not render the markdown. Description differences are also shown as code.
The use of <div>
keeps markdown from parsing its contents. Using <code>
keeps our various filters (like references and SpacedLinkFilter
) from detecting anything.
References
Screenshots or screen recordings
Before | After |
---|---|
![]() |
![]() |
How to set up and validate locally
-
Create issue with the title
#55 title change and lots more
-
Change the title to
#55 title change _and_ x^2 lots more
. A system note should be added that looks like this -
Change the title to
#55 titles change and x^2 lots more
. A system note should be added that looks like this
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.
Related to #15349 (closed)