element-hq / element-hq/element-android

Multi-line code blocks apply monospace font to entire message

Open
#853 5 comments 18 reactions 0 assignees View on GitHub
A-Event rendering
Dominant language
Kotlin
Stars
3.7k
Forks
917
PR merge metrics
No merged PRs in 30d

Description

When using multi-line code blocks in a message, the entire message appears to be rendered as preformatted text. RiotX v0.12.0. See below for example.

![2020-01-16-192429_322x179_scrot](https://user-images.githubusercontent.com/614975/72552415-17477e80-3897-11ea-871d-bf616e971646.png)

Message source containing multi-line code block.
![2020-01-16-192636_461x431_scrot](https://user-images.githubusercontent.com/614975/72552421-1e6e8c80-3897-11ea-9cc5-dade0e24dbe6.png)

The `

` tag is correctly placed in `formatted_body`, but the message renders incorrectly.

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.