-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Description
Description:
This issue is about two things in our Markdown parsing:
- It adds a new line to the markdown processed HTML;
- It renders the images of the links that are inside of the code block;
Server Setup Information:
- Version of Rocket.Chat Server: 0.62
- Operating System: Linux
Steps to Reproduce:
- Send a new message with this text:
Here's the code block, remove the initial `\` in the begin and the end before sending the message.
\```
➜ ~ time wget https://open.rocket.chat/avatar/rafael.kellermann
--2018-02-28 09:58:41-- https://open.rocket.chat/avatar/rafael.kellermann
Resolving open.rocket.chat... 104.196.189.8
Connecting to open.rocket.chat|104.196.189.8|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10875 (11K) [image/jpeg]
Saving to: 'rafael.kellermann'
rafael.kellermann 100%[===========================================================================>] 10.62K --.-KB/s in 0s
2018-02-28 09:59:05 (30.1 MB/s) - 'rafael.kellermann' saved [10875/10875]
real 0m23.927s
user 0m0.023s
sys 0m0.020s
\```
Expected behavior:
- It should not add a new line;
- It should not render the images;
Actual behavior:
- It adds a new line;
- It renders the images;
