-
Notifications
You must be signed in to change notification settings - Fork 10.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v5.0.* Code Block Highlighting No Longer Working As Expected #26388
Comments
Tested also against version |
I noticed in 5.0.3 that if you put the code block markers on a separate line, it does render the code block properly. I've also noticed this prior to 5.0 on the android app, not sure exactly when it started. I assume the difference is that there is no option to use the legacy message parser on mobile apps. I believe this bug actually predates 5.0, it's just that users' default message parser was changed when 5.0 was released. |
Fixed by RocketChat/fuselage#739 |
Just updated to 5.1.2, which does not fix this. Here's a screenshot example: First block is three backticks, newline, foo, newline, three backticks. Second block is three backticks, foo, three backticks. With the new message template: With the legacy message template, both code blocks display properly. |
Do we know if this will be in the |
Apparently not, as 5.3.0 is still broken. Do we know if it will be in 5.4.0? |
There seems to be an issue when rendering a code block
e.g. if I post to
api/v1/chat.postMessage
response:
without legacy messages:
then the code block wont be highlighted unless I activate "Enable Legacy Messages"
with legacy messages:
Originally posted by @jadanah in #23971 (comment)
The text was updated successfully, but these errors were encountered: