Skip to content

Retain bullet style after editing a page with lists in content editor

Himanshu Kapoor requested to merge himkp-content-editor-sourcemap into master

What does this MR do?

When you edit a page in the content editor, your original style of bullets in bullet lists are lost and are replaced with * list item style bullets.

This MR creates a way to read the markdown source of the rendered HTML to retain original markdown style for bullet lists when serializing the content back to markdown.

How to setup and validate locally (strongly suggested)

  1. Create a new Wiki page.

  2. Type the below code:

    * List style 1
    * List style 1
      - Sub list
    
    
    + List style 2
    + List style 2
      * Sub list
    
    
    - List style 3
    - List style 3
      + Sub list
  3. Click "Use new editor".

  4. Click "Save changes".

  5. Edit the page again. You will note that the list bullet styles are now preserved after editing in content editor.

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Himanshu Kapoor

Merge request reports