element-hq / element-hq/element-web

Sending markdown with a horizontal rule does not work with rich text editor

Open
#25,954 3 comments 0 reactions 0 assignees View on GitHub
A-Rich-Text-Editor O-Uncommon S-Major T-Defect Z-Labs
Dominant language
TypeScript
Stars
13.5k
Forks
2.8k
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

1. Enable rich text editor in labs
2. Open any room
3. Turn composer formatting off ![image](https://github.com/vector-im/element-web/assets/6216686/b43a024f-c6c3-4860-b389-04797504e5dc)
4. Send

```
This is
---
a test
```

### Outcome

#### What did you expect?

Message send

#### What happened instead?

Message not send

Error in console:

```
MessageComposer.tsx:351 Uncaught (in promise) could not create dom from html
```

### Operating system

_No response_

### Application version

Element Nightly version: 2023081001 Olm version: 3.2.14

### How did you install the app?

_No response_

### Homeserver

_No response_

### Will you send logs?

Yes

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.