Skip to content

Preserve ordered list starting number#713

Open
mdiebolt wants to merge 4 commits intobasecamp:mainfrom
polleverywhere:main
Open

Preserve ordered list starting number#713
mdiebolt wants to merge 4 commits intobasecamp:mainfrom
polleverywhere:main

Conversation

@mdiebolt
Copy link

At Poll Everywhere we have a use-case where we have multiple Lexxy editors on the same page representing choices to a multiple choice question. Our customers want to be able to mark choices with 1., 2., 3. and have them styled as a list.

Prior to this change the editor rendered the lists as authored but on save the list element start attribute would get sanitized away, resulting in each choice showing 1..

This PR adds start to both the DOM purify and ActionText attribute allowlists.

Before
before

After
after

mdiebolt and others added 4 commits January 21, 2026 22:17
In order for `ol` list elements to respect the numbers they were authored with we need to make sure that the `start` attribute makes it through dom_purify
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant