element-hq / element-hq/element-web

Incorrect rendering of ordered lists in message edits modal

Open
#28,745 1 comment 0 reactions 0 assignees View on GitHub
A-Message-Editing O-Uncommon S-Minor T-Defect Z-Upstream
Dominant language
TypeScript
Stars
13.5k
Forks
2.8k
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

- Send the message
```plaintext
1. foo
2, bar <- note the comma instead of a period
```
- Edit your message, replacing the comma after 2 with a period
- Click `(edited)`

### Outcome

#### What did you expect?

Correct rendering of the list in the message edits modal

#### What happened instead?

Item 2 in the list is rendered as number 3 in the edits diff

![image](https://github.com/user-attachments/assets/2db12c83-8639-49af-9a3d-8d74ff13d3c9)

### Operating system

Debian 12

### Browser information

Firefox 128.5.0esr (64-bit)

### URL for webapp

n/a

### Application version

Element version: 1.11.87 Crypto version: Rust SDK 0.7.2 (517d99b), Vodozemac 0.7.0

### Homeserver

n/a

### 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.