element-hq / element-hq/element-web

Markdown parsing failure involving dash (`-`) and escaped underscore (`\_`)

Open
#28,653 1 comment 0 reactions 0 assignees View on GitHub
A-Markdown 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. Input

```
-

\_
```

2. Send
3. Message that gets sent: `

_`

Another case:

```
a

a -> b

\_
```

results in a single collapsed paragraph:

```
a a -> b _
```

### Outcome

#### What did you expect?

Message should be sent as is.

#### What happened instead?

Message is corrupted.

### Operating system

Arch Linux

### Application version

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

### How did you install the app?

Arch Linux repo

### Homeserver

termina.org.uk

### Will you send logs?

No

Contributor guide

Open the contributing guide

Research direction

Reproduce both Markdown inputs in Element Web and compare the rendered and sent messages with the expected text. Trace the Markdown parsing path responsible for list markers, escaped underscores, and collapsed paragraphs; done means both examples are sent unchanged without corrupted HTML or formatting.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.