element-hq / element-hq/element-android

Can't escape backslashes or asterisks

Open
#2,577 0 comments 7 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**
Using an additional backslash to escape a backslash doesn't work. Both backslashes still get treated as escapes for whatever follows.

Using a backslash to escape an asterisk doesn't work eithec.

**To Reproduce**
Steps to reproduce the behavior:
1. Enable MD
2. Type `\*bruh \\\_\*` in a chat
3. Send
4. See only
>*bruh \_*

**Expected behavior**
Should see
>\*bruh \\\_\*

**Screenshots**
If applicable, add screenshots to help explain your problem.
![Screenshot_۲۰۲۰۱۲۲۳-۰۶۴۰۰۵_Element dbg](https://user-images.githubusercontent.com/32847759/103001714-bf73b780-44ea-11eb-8935-9f74bb6854ad.jpg)
![Screenshot_۲۰۲۰۱۲۲۳-۰۶۵۰۵۳_Element dbg](https://user-images.githubusercontent.com/32847759/103002189-b59e8400-44eb-11eb-83fb-646021ef4e1d.jpg)

**Smartphone (please complete the following information):**
- Device: [e.g. Samsung S6] Samsung GS20
- OS: [e.g. Android 6.0] Android 11

**Additional context**
- App version and store [e.g. 1.0.0 - F-Droid] 1.0.14-dev [206996860] (G-b1012) develop
- Homeserver: [e.g. matrix.org] ostavrosnika.com

Add any other context about the problem here.

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.