Skip to content

Resolve "Copying ordered list to new comment becomes unordered"

What does this MR do?

Fixes copying and pasting ordered lists from/to GFM, when just the list was selected. This is done by evaluating the commonAncestorContainer of the selection and, if necessary, including it.

I (re)used / rewrote some code from !17508 (closed), which is kind of related to this issue / merge request.

Are there points in the code the reviewer needs to double check?

I admit that this fix has more of a workaround than a "fix", but I think this is sufficient here.

Screenshots (if relevant)

lists-fix

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #40484 (closed)

Merge request reports