Lists change style when edited #23507
Labels
A-Composer
O-Occasional
Affects or can be seen by some users regularly or most users rarely
S-Minor
Impairs non-critical functionality or suitable workarounds exist
T-Defect
Steps to reproduce
i. At least one line of text.
ii. A list of items with at least one item in a sublist
A screencap of what it looks like:
Screencast.webm
It seems that editing a message like the one described above results in all the list items text being wrapped in
<p></p>
tags. These then receive a margin from the markdown-body style, adding space between the list elements. Curiously, this does not happen if the list does not contain any sublist or if the list is the only part of the message.Potentially related part of the code: https://github.com/matrix-org/matrix-react-sdk/blob/631720b21b9260bd05478e92034f8b9c46be342b/src/Markdown.ts#L282
Outcome
What did you expect?
For list style to be consist across edits.
What happened instead?
List gained/lost padding after edits.
Operating system
Fedora 35
Browser information
Firefox 102.0.2
URL for webapp
develop from a couple days ago
Application version
Version von Element: !!UNSET!! Version von Olm: 3.2.12
Homeserver
No response
Will you send logs?
No
The text was updated successfully, but these errors were encountered: