element-hq / element-hq/element-web

Markdown loose lists collapses when comment is edited

Open
#25,952 2 comments 0 reactions 0 assignees View on GitHub
A-Composer A-Message-Editing O-Occasional S-Minor T-Defect
Dominant language
TypeScript
Stars
13.5k
Forks
2.8k
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

1. Submit a comment with the following content, which is formatted in Markdown:

```
- This is the first item in a list.

- This is the second item in the list.

Some list items span multiple paragraphs.

---

- This is the first item in a list.
- This is the second item in the list.
The list has ended.
```

The comment should appear as follows:

> - This is the first item in a list.
>
> - This is the second item in the list.
>
> Some list items span multiple paragraphs.
>
> ---
>
> - This is the first item in a list.
> - This is the second item in the list.
> The list has ended.

(GitHub may be rendering incorrectly, by including the final of the three lines of text within the list item.)

1. Edit the comment.

1. *Notice that the list in the prior section is collapsed, taking the structure of that in the latter.*

### Outcome

The comment source should be preserved as a literal character sequence.

### Operating system

Linux Mint 21.2

### Browser information

Firefox 116.0.2

### URL for webapp

app.element.io

### Application version

Element version: 1.11.38; Olm version: 3.2.14

### Homeserver

matrix.org

### Will you send logs?

No

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.