element-hq / element-hq/element-web

<div> content is ignored with KaTeX lab

Open
#17,612 4 comments 0 reactions 0 assignees View on GitHub
A-Maths A-Timeline O-Uncommon T-Defect Z-Labs
Dominant language
TypeScript
Stars
13.5k
Forks
2.8k
PR merge metrics
PR metrics pending

Description

### Description

```
{
"type": "m.room.message",
"content": {
"msgtype": "m.text",
"format": "org.matrix.custom.html",
"body": "

within div
without div",
"formatted_body": "
within div
without div"
}
}
```

![image](https://user-images.githubusercontent.com/2803622/121500586-bb771b80-c9de-11eb-8c5c-0f2d1ed4d815.png)

### Steps to reproduce

- `/html` or any other means of creating above event

Element can ignore the structure given by the tag, and it's other properties, but should at least show the content?
See also parity with android, which does show it as expected.

Possibly Element could warn about tags not being supported when sending `/html`.

Logs being sent: no

### Version information

- **Platform**: desktop

For the desktop app:

- **OS**: Arch
- **Version**: aur/element-desktop-nightly-bin 2021061001-1

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.