element-hq / element-hq/element-android

Clickable URL in Code Block

Open
#8,177 2 comments 0 reactions 0 assignees View on GitHub
A-Composer O-Occasional S-Minor T-Defect
Dominant language
Kotlin
Stars
3.7k
Forks
917
PR merge metrics
No merged PRs in 30d

Description

### Steps to reproduce

1. Send a message containing a URL inside a code block (with markdown that can be done with the \` character on both ends, with html you can use \\), displays like this:
`https://element.io`

2. Observe that the link is clickable despite it being inside the code block.
3. Optionally observe that this is not the same behavior observed on Element Web

Element Android:
![Screenshot_20230225_030849_Element](https://user-images.githubusercontent.com/49926644/221353926-6cbb577d-809e-489d-9bf0-8e065d2b8013.jpg)

Element Web:
![LJDKSHuc8v](https://user-images.githubusercontent.com/49926644/221353943-16f38532-2db6-43dd-bd82-f633f872e616.png)

### Outcome

#### What did you expect?
Links in code blocks to not be clickable
#### What happened instead?
The link can be clicked despite being in a code block

### Your phone model

Samsung S22

### Operating system version

Android 13

### Application version and app store

Element version 1.5.25, olm version 3.2.12 from Play Store

### Homeserver

Irrelevant (matrix.org)

### Will you send logs?

Yes

### Are you willing to provide a PR?

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.