Add blob snippet embed support to content editor
What does this MR do and why?
Adds content editor support for the blob snippet embeds.
This is a must have for this feature, and the reason why the previous MR added an FF: without it, they become atrociously corrupted in the rich-text editor, which then will actually get saved out and look that bad For Real™ if the user continues.
MR stack
For Render blob line of code in GFM (#300855):
- Add suppress_line_ids to Gitlab::Highlight (!246835)
- Add EmbeddedBlobComponent for rendering embedde... (!246837)
- Embed blob permalinks in GLFM behind FF (!246838)
- Add blob snippet embed support to content editor (!246840)
⬅️ you made it!
Screenshots or screen recordings
Using the same example as !246838:
| Before | After |
|---|---|
![]() |
![]() |
How to set up and validate locally
TODO
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.
Edited by Asherah Connor

