New message parser fails to render markdown-formatted links with underscores in the description
Description:
New message parser fails to render markdown-formatted links with underscores in the description. This does not occur with the legacy message parser.
Steps to reproduce:
- Enter a message such as
[google_search](https://www.google.com)
Expected behavior:
Link is rendered with the link text google_search
Actual behavior:
The text is displayed as entered. This is the rendered output of:
[google_search](https://www.google.com)
[google search](https://www.google.com)
Server Setup Information:
- Version of Rocket.Chat Server: 5.3.3
- Operating System: Rocky Linux 8.7
- Deployment Method: docker
- Number of Running Instances: 1
- DB Replicaset Oplog: yes
- NodeJS Version: v14.19.3
- MongoDB Version: 5.0.14 / wiredTiger (oplog Enabled)
Client Setup Information
- Desktop App or Browser Version: Desktop App 3.8.12 (Linux) and 3.8.13 (MacOS)
- Operating System: Linux and MacOS
@ebyrne242 thanks for your contribution, this will be addressed soon!
Hey, can I work on this? @hugocostadev
Sure @viniciused26 , it's not so trivial, but if you like a challenge you can check it out the repository and package that we build our parser.
Our parser is built in PEGjs library for reference.
Package/Repo: https://github.com/RocketChat/fuselage/tree/develop/packages/message-parser
Ok, I'll take a look to see if I can help. I was hoping to contribute with the project, but the issues labeled as "good first issue" seemed outdated, if you have good issues for begginers I would love to take a look at them. Thanks.
It's not just underscores.... It's also 3 types of brackets, star operators, etc.
Plz @ebyrne242 update the description.

(RC version 5.3.5)
Hey @ebyrne242 @dusatvoj @viniciused26 This error is not happening on my machine

Hey @ebyrne242 @dusatvoj @viniciused26 This error is not happening on my machine
Weird, which version?
Hey @dusatvoj
- Version of Rocket.Chat Server: 6.0.0
- Operating System: Ubuntu
- Deployment Method: docker
- NodeJS Version: v14.19.3
- MongoDb Version: 5.0.5
@Toledodev what? RocketChat server 6.0.0? :thinking: :grinning:
I guess that means the issue is fixed on the latest develop ;)
@dusatvoj @debdutdeb

Today I've upgraded to 5.4.1 (latest stable) and there's very tricky behavior. Different inside and outside of a thread.

I'm working on this issue, soon we will have a fix for that!