Skip to content

Fix serialization of tables in Content Editor

What does this MR do and why?

It fixes a bug where the Content Editor is stripping blank lines between unordered lists and tables. This results in improperly formatted Markdown and the table doesn't render.

Screenshots or screen recordings

Before After
2022-09-30_13.23.52 2022-09-30_13.21.42

How to set up and validate locally

  1. Create a wiki page with the following code in raw markdown:
    1. - 1
      - 2
      - 3
      
      | header | header | header |
      | ------ | ------ | ------ | 
      | cell | cell | cell |
      
  2. Edit that page in the Content Editor by clicking the Edit rich text segmented control above the editor.
  3. Modify the list or the table.
  4. Save the page in the Content Editor.
  5. Switch back to the Source mode using the segmented control above.
  6. There should be a blank line between the bullet list and the table below.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #354795 (closed)

Edited by Enrique Alcántara

Merge request reports