element-hq / element-hq/element-web

Latex mangles URL

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

Description

### Steps to reproduce

1. enable latex rendering in labs
2. send a message containing a URL such as `https://example.org/ext/11580940-01.jpg?$rtf_mt_prod-main-zoom_xl$`

### Outcome

#### What did you expect?
the URL gets parsed as URL

#### What happened instead?
the URL parser stops before `?` and the rest between `$`s gets interpreted as latex.
![image](https://user-images.githubusercontent.com/2803622/183520332-494d304e-df20-401e-9fa1-fcf93e358a71.png)

the URL parser should overrule the latex parser in this case, because this is an ongoing URL

#### Related
#15846 and its dupes

### Operating system

arch

### Application version

Element Nightly version: 2022080701 Olm version: 3.2.12

### How did you install the app?

aur

### Homeserver

_No response_

### Will you send logs?

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.