Skip to content

[FIX] Add support for carriage return in markdown code blocks#7072

Merged
rodrigok merged 1 commit into
RocketChat:developfrom
factorin-j:markdown-carriage-return
May 31, 2017
Merged

[FIX] Add support for carriage return in markdown code blocks#7072
rodrigok merged 1 commit into
RocketChat:developfrom
factorin-j:markdown-carriage-return

Conversation

@factorin-j
Copy link
Copy Markdown

@factorin-j factorin-j commented May 24, 2017

@RocketChat/core

When I created an integration with Github (to notify PR comments), I noticed that the markdown is not working for code blocks if its a message attachment. Its because Github webhook payload has carriage return and new line \r\n. That's why javascript regex cannot split the text correctly

refs: https://demo.rocket.chat/channel/support?msg=hkHxtB3vtnCq7X9JY

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 24, 2017

CLA assistant check
All committers have signed the CLA.

@rodrigok rodrigok added this to the 0.57.0 milestone May 31, 2017
@rodrigok rodrigok merged commit d695d10 into RocketChat:develop May 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants