question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Code block markdown inserts improper line breaks

See original GitHub issue

If you haven’t already, check out our contributing guidelines for onboarding!


Upwork job: https://www.upwork.com/jobs/~01921d7b980ffc182b

Platform - version: ALL

Action Performed (reproducible steps):

  • Log into expensify.cash
  • Send a message containing a code block (framed by ```) longer than 1 line, and with a double dash " – " to observe the formatting.

The example text is:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent viverra feugiat ipsum sit amet dapibus. Donec eu euismod metus, viverra tempor lacus. In semper, magna vel eleifend ultrices, nisi turpis facilisis metus, ac tristique nisi sem non est. Quisque tempus turpis vitae lectus maximus tincidunt. Fusce tempor nisl et condimentum lacinia. Sed tellus arcu, commodo vitae lorem et, tincidunt porttitor – magna. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum sem tellus, tempus in vulputate a, tempor eleifend massa. Morbi a dolor ut est tincidunt consectetur non at justo. Nullam sem erat, gravida in ipsum ac, facilisis faucibus ex. Morbi venenatis turpis justo, vitae interdum sapien venenatis quis. Duis dictum ornare – massa, ac mollis quam sagittis non. Vivamus metus tellus, ultricies eu metus vel, pharetra vulputate nunc. Nulla nec ex ac orci dignissim imperdiet.

Expected Result:

The code block should wrap full words onto the next line, and the double dash " – " should not cause a line break.

Actual Result:

Words are broken in the middle, and each time a double dash appears there is a line break in the middle of the two dashes.

Notes/Photos/Videos:

image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
ronlaniadocommented, Dec 30, 2020

I’ve been workng on this issue

0reactions
kadiealexandercommented, Jan 12, 2021

Just a mistake, sorry Marc!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Markdown no newlines in codeblock · Issue #7308 - GitHub
I can work around the issue by just making every single line of code its own block and adding 2 spaces to the...
Read more >
Markdown fails to render code blocks with blank lines when ...
code block is not separated from list by a blank line. If 'Text' is not prefixed with * it will be rendered good....
Read more >
How to add new line in Markdown presentation?
When you do want to insert a <br /> break tag using Markdown, you end a line with two or more spaces, then...
Read more >
Basic Syntax - Markdown Guide
To create a line break or new line ( <br> ), end a line with two or more spaces, and then type return....
Read more >
Line break in Markdown - Szymon Krajewski
There are a few different methods to enforce a line break in the same paragraph in Markdown syntax: HTML's <br /> , backslash...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found