Making WordPress.org

Opened 7 weeks ago

Closed 7 weeks ago

#7618 closed defect (bug) (fixed)

Indented List Items breaking all parent list items

Reported by: jamesosborne's profile jamesosborne Owned by: dd32's profile dd32
Milestone: Priority: normal
Component: Support Forums Keywords:
Cc:

Description

When adding an ordered list to the support forums, and then a sublist (by indenting child items), all following parent list items are misformatted and changed to unordered lists (top level)

https://i.imgur.com/3gd0XNU.png

This is easily to replicate, as a list item with step 1 and 2. Within Step 1, add some substeps, by indenting them (ie. Step 1.1 and 1.2). After doing so, only step 1 will be ordered.

Change History (2)

#1 @dd32
7 weeks ago

  • Owner set to dd32
  • Status changed from new to accepted

This is a hold-over from the pre-block-editor, where we had to correct list item HTML often due to invalid syntax being posted.

See #20

I'll try disabling this for the Block Editor posts, as invalid HTML should be a thing of the past.

#2 @dd32
7 weeks ago

  • Resolution set to fixed
  • Status changed from accepted to closed

In 13635:

Support Forums: Don't apply the <li> improper HTML fixes to block content.

With support forum posts being written with the block editor, invalid HTML is much less likely now.

This tries removing the list item fixes from block posts.

See #20.
Fixes #7618.

Note: See TracTickets for help on using tickets.