element-hq / element-hq/element-x-android

No Line Break when using `<h2>` or header tags

Open
#2,870 2 comments 0 reactions 0 assignees View on GitHub
A-Event Rendering O-Uncommon S-Minor T-Defect
Dominant language
Kotlin
Stars
2.4k
Forks
624
Avg merge
1d 14h
Merged PRs (30d)
149

Description

### Steps to reproduce

1. Send a message with `

or

` html tags
2. View the said message on Element X for Android app
3. Presented wtih this layout
![image](https://github.com/element-hq/element-x-android/assets/1276544/376b6ffb-ded1-4c3a-baf9-08b152fe29af)

### Outcome

#### What did you expect?
Line break is rendered like other clients
Element Desktop:
![image](https://github.com/element-hq/element-x-android/assets/1276544/bacd507a-2820-4d0e-bcbb-1c7bc4f76ac4)

Element X for iOS
![image](https://github.com/element-hq/element-x-android/assets/1276544/f18e288c-d0d9-45be-8527-f143f7b0b3ff)

#### What happened instead?
No line breaks rendered as per screenshot above

#### Event source
```json
{
"type": "m.room.message",
"sender": "@miniflux:matrix.domain.com",
"content": {
"msgtype": "m.text",
"format": "org.matrix.custom.html",
"body": "Writers and publishers in Singapore reject a government plan to train AI on their work | Singapore's literary community is pushing back against an official effort to train LLMs using their published works, part of a growing global resistance.submitted by /u/Maxie445 [link] [comments] newest submissions : technology - 11:02 AM | 2024-05-17",
"formatted_body": "

Writers and publishers in Singapore reject a government plan to train AI on their work | Singapore's literary community is pushing back against an official effort to train LLMs using their published works, part of a growing global resistance.

submitted by /u/Maxie445 [link] [comments]
newest submissions : technology - 11:02 AM | 2024-05-17"
},
"origin_server_ts": 1715915966989,
"unsigned": {
"age": 31024442
},
"event_id": "$R-kNvACfz_21HrMFOGuSKSxI7nxVhg926kNQqFHoJgA",
"room_id": "!YbRnSlgHyZfmuunCYC:matrix.domain.com"
}
```

### Your phone model

_No response_

### Operating system version

Android 13

### Application version and app store

Element X Version 0.4.12 (40004120)

### Homeserver

Synapse 1.107.0

### Will you send logs?

No

### Are you willing to provide a PR?

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.