element-hq / element-hq/element-android

escaping italic/bold markers does not work (1.1.9)

Open
#3,580 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
3.7k
Forks
917
PR merge metrics
No merged PRs in 30d

Description

#### Describe the bug
related #3576
Sending escaped like `\*word\*`, `\*\*word\*\*`, `\_word\_` *without delimiting spaces* works as intended (the special chars are escaped and shown literally) on desktop, but the `\` are ignored (neither rendered nor do they escape) on android, resulting in italics/bold.

Further, using forward slashes instead results in not getting mardown.

#### To Reproduce
Steps to reproduce the behavior:
1. see above

#### Expected behavior
desktop

#### Screenshots
I can offer these message bodies instead.

This is the result of `\*escape\*` and doesn't work (consistently between platforms).
```
{
"content": {
"body": "\\*escape\\*",
"format": "org.matrix.custom.html",
"formatted_body": "*escape*",
"msgtype": "m.text"
},
"type": "m.room.message"
}
```

Typing `Test /* bla /*` does also not work 100% as expected, however it is consistent between platforms and somewhat reasonable.

```
{
"content": {
"body": "Test /* bla /*",
"msgtype": "m.text"
},
"type": "m.room.message"
}
```

#### Smartphone (please complete the following information):
- Device: moto g5s+
- OS: android 10

#### Additional context
- App version and store 1.1.9 F-Droid
- Homeserver: private

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.