element-hq / element-hq/element-android

`<font color>` is not applied inside of `<h1>`

Open
#5,438 0 comments 0 reactions 0 assignees View on GitHub
A-Event rendering O-Occasional S-Minor T-Defect
Dominant language
Kotlin
Stars
3.7k
Forks
917
Avg merge
8d 20h
Merged PRs (30d)
1

Description

### Steps to reproduce

1. send colored text inside of a heading

### Outcome

```
{
"msgtype": "m.notice",
"body": "weißes ?, rotes ?, blaues ?",
"format": "org.matrix.custom.html",
"formatted_body": "???"
}
```
renders as it should:
![image](https://user-images.githubusercontent.com/2803622/157028419-97ecb9f4-082d-4e74-98d5-a3e6c582f2c9.png)

```
{
"msgtype": "m.notice",
"body": "großes weißes ?, großes rotes ?, großes blaues ?",
"format": "org.matrix.custom.html",
"formatted_body": "

???

"
}
```
renders neither `

` nor `color`

![image](https://user-images.githubusercontent.com/2803622/157028380-1054e69c-2ace-4fca-931c-6ddb2a2f5d8a.png)

```
{
"body": "# ???",
"msgtype": "m.text",
"format": "org.matrix.custom.html",
"formatted_body": "

???

\n"
}
```
renders as it should
![image](https://user-images.githubusercontent.com/2803622/157028871-8e27a5a7-378c-42df-a3bd-e8ad4f896a5a.png)

actually on 1.4.2 this underline appears also
![image](https://user-images.githubusercontent.com/2803622/157541748-c9eb9891-a126-4b74-a693-95e141a532c1.png)

### Your phone model

_No response_

### Operating system version

10

### Application version and app store

1.4.2

### Homeserver

1.53

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