Skip to content
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

Markdown render texts in single paragraph into two lines #1429

Closed
compulim opened this issue Dec 3, 2018 · 1 comment · Fixed by #1988 or #2055
Closed

Markdown render texts in single paragraph into two lines #1429

compulim opened this issue Dec 3, 2018 · 1 comment · Fixed by #1988 or #2055
Assignees
Labels
bug Indicates an unexpected problem or an unintended behavior. front-burner Good first bug p2 Nice to have support Internal request for assistance from the Support Team

Comments

@compulim
Copy link
Contributor

compulim commented Dec 3, 2018

Type echo "Same line.\nSame line. \n2nd line.\n\r3rd line." in MockBot. It shows:

image

Instead, both "Same line." should lies on the same line. When trying out with CommonMark and Markdown-It without Web Chat, the result is correct.

image

But in Web Chat, it renders like:

image

@compulim compulim added bug Indicates an unexpected problem or an unintended behavior. front-burner 4.4 p2 Nice to have Good first bug and removed front-burner labels Dec 3, 2018
@cwhitten cwhitten added backlog Out of scope for the current iteration but it will be evaluated in a future release. and removed 4.4 labels Apr 2, 2019
@corinagum corinagum removed this from P2 in 4.4 Prioritization Apr 2, 2019
@cwhitten cwhitten added the 4.5 label May 13, 2019
@corinagum corinagum added Approved and removed backlog Out of scope for the current iteration but it will be evaluated in a future release. labels May 13, 2019
@tdurnford
Copy link
Contributor

Changing the Markdown-it breaks option from true to false in renderMarkDown resolves the issue, but you need to add two spaces before a newline character if you want a break line tag on the second line. In the example above, it looks like there is only one space before the newline character, but I'm not exactly sure since Web Chat is trimming the extra white space when it displays the activity. If you, @compulim, can clarify what the expected behavior should be, I would appreciate it.

echo "Same line.\nSame line. \n2nd line.\n\r3rd line."

image

@tdurnford tdurnford added the support Internal request for assistance from the Support Team label May 14, 2019
@corinagum corinagum moved this from P2 to Review in R8 Prioritization May 21, 2019
@corinagum corinagum moved this from Review to Done in R8 Prioritization May 21, 2019
@compulim compulim mentioned this issue Jul 8, 2019
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or an unintended behavior. front-burner Good first bug p2 Nice to have support Internal request for assistance from the Support Team
Projects
No open projects
4 participants