Rocket.Chat.ReactNative icon indicating copy to clipboard operation
Rocket.Chat.ReactNative copied to clipboard

Markdown is cutting off text

Open AgentTNT opened this issue 6 years ago • 2 comments

  • Your Rocket.Chat Experimental app version: 4.4.0 (stable from app sotres)
  • Your Rocket.Chat server version: 3.0.1
  • Device (or Simulator) you're running with: Android 10 and iOS

When markdown is disabled on both Android and iOS, we see the expected format: markdown-disabled

However when markdown is enabled, the first line is removed and the proper markdown visualization is not honored: markdown-enabled

edit Additional styles markdown-disabled-2 markdown-enabled-2 markdown-disabled-3 markdown-enabled-3

AgentTNT avatar Feb 24 '20 14:02 AgentTNT

I think it's a standard, we are supposed to give a line break after "```" for normal text messages If there is a language that needs to be specified for the code block then it is entered as follows: image Results in :

var justATest = "Rocket.Chat"

But in the issue, we are saying: image which is resulting in: "line2 line3```"

which is expected because the markdown is taking line1 as some language type like javascript.

link - https://rocket.chat/docs/contributing/documentation/markdown-styleguide/

sarthakpranesh avatar Feb 27 '20 18:02 sarthakpranesh

I see that it is an app issue, because web version all markdown renders correctly. Here is an examples. image image and app shows that like this IMG_20200522_111729

But if I add new line after "some code" image Web version remain same correct image And app version become correct image So, app can just add new line (as it happens in web version) before multi-line code.

ankar84 avatar May 22 '20 04:05 ankar84