element-hq / element-hq/element-web
Latex mangles URL
- 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.

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
Assessment
This issue has not been assessed yet.