Ensure scoped labels display properly in source code md preview
What does this MR do and why?
The style attr was being stripped from all elements in the rich
viewer, but it only needs to be stripped in snippets for security
purposes. This MR re-allows it so that style attributes on labels can be
passed to define label colors.
References
- Labels are not rendered correctly in the markdo... (#515420 - closed)
- ✂️ UX Paper Cuts 18.1 → Mixed milestone (#513102 - closed)
Screenshots or screen recordings
| Before | After |
|---|---|
![]() |
![]() |
How to set up and validate locally
- Check out this branch
- Edit or create a markdown file in a code repository in the GDK
- Add a scoped label that exists in the project to the markdown file
- Save and view the markdown file's preview
- You will see the scoped label rendered properly
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 #515420 (closed)

