Code blocks formats and escapes special characters
Rocket.Chat Version: 0.54.2 Running Instances: 3 DB Replicaset OpLog: Enabled Node Version: 4.8.1
Code blocks formats and escapes cpecial characters etc. Affected, at least, quotes, ampersands, double quotes.
For example:
importScripts("https://www.gstatic.com/firebasejs/3.6.8/firebase-app.js?some=true&other=false");
importScripts("https://www.gstatic.com/firebasejs/3.6.8/firebase-messaging.js?some=true&other=false");
is converted to
importScripts("https://www.gstatic.com/firebasejs/3.6.8/firebase-app.js?some=true&other=false");
importScripts("https://www.gstatic.com/firebasejs/3.6.8/firebase-messaging.js?some=true&other=false");
It seems, that this behavior is observed when code block start and\or end sequences``` code ``` are on the same line as code
We having the same issue. One liner like this: ``` awk '{print $2}');
leads to --> screenshot.

This could be related to the implementation made to fix #6311 and changes made to the Regular Expression
Same as #6592
We get this too on 0.54.0, very annoying for developer teams.
"Bug" still in 0.56.0.
I've had this issue, but only if the code block isn't closed correctly. If I leave off the closing ``` then the characters are turned into ampersand character codes, but if the block is closed correctly, the characters remain.

Same as #6789
Seems to be fixed with 0.57.0 here.