Fix serialization of unchanged inline elements in the Content Editor
What does this MR do and why?
Fixes a bug in the Content Editor’s markdown serializer that inserts a blank line after serializing inline elements line images and footnote references.
Screenshots or screen recordings
Before | After |
---|---|
![]() |
![]() |
![]() |
![]() |
How to set up and validate locally
- Enable the
preserve_unchanged_markdown
feature flag - Create or edit a Wiki page
- Paste the following Markdown snippet
This is a footnote reference [^footnote] [^footnote]: Footnote definition
- Switch to the Content Editor by clicking the "Rich Text" button.
- Add some text after the footnote reference.
- Switch back to the Classic Markdown Editor. You will see that there isn’t a blank line between the footnote and the text you introduced.
- Test the same pattern with images.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.