Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Line breaks in markdown
Hello  (<-- two spaces)
World

Hello
World


Hello
World

Hello World


Hello<br/>
World

Hello
World


Hello

World

Hello

World

@bowman2001
Copy link

bowman2001 commented Sep 6, 2021

Test of the actual line break policy on GitHub. Does a simple return lead to a line break?
If this line is on a new one, it does.

@Berkanktk
Copy link

Berkanktk commented Sep 28, 2021

That's actually pretty neat, lol

@M-hossameldine
Copy link

M-hossameldine commented Oct 13, 2021

This was helpful, Thanks.

@haihninit
Copy link

haihninit commented Dec 13, 2021

Hello

Richard

@mvhulten
Copy link

mvhulten commented Dec 13, 2021

Another test
on a new line.

Source:

Another test
on a new line.

This is not what Markdown should do.

@ChienYuLu
Copy link

ChienYuLu commented Dec 16, 2021

Test

A
B

@byrmylmz
Copy link

byrmylmz commented Jan 19, 2022

Thanks...

@KevinNha
Copy link

KevinNha commented Jan 28, 2022

Hello  (<-- two spaces)
World

Hello
World

@mpsq
Copy link

mpsq commented Feb 2, 2022


\

@orbittwz
Copy link

orbittwz commented Feb 9, 2022

Very nice! thank you :)

@zoey-on-github
Copy link

zoey-on-github commented Feb 17, 2022

seeing if github
formats lines like this
oh look it does

@antonioribezzi
Copy link

antonioribezzi commented Mar 2, 2022

test
test

@TheDayIsMyEnemy
Copy link

TheDayIsMyEnemy commented Mar 3, 2022

Hi
guys

@rocking5566
Copy link

rocking5566 commented Mar 15, 2022

test
HI

@chiragmatkar
Copy link

chiragmatkar commented Mar 23, 2022

helloo
world

@daviareias
Copy link

daviareias commented Mar 24, 2022


This is a test.
aaa
Thanks for making feel like an idiot (you actually need three `like this ```)

@roland-gsell
Copy link

roland-gsell commented Mar 24, 2022

hello
world

@roland-gsell
Copy link

roland-gsell commented Mar 24, 2022

Well, thanks.
Why should it be easy to post code blocks into comments on github? Wouldn't make any sense.

@Meaw2
Copy link

Meaw2 commented Apr 1, 2022

I think Github allows html markups for Commit Messages

@j0053f
Copy link

j0053f commented Apr 15, 2022

hello world

@cesarvarela
Copy link

cesarvarela commented May 26, 2022

A place on the internet where
we check the new line behavior of markdown.

@sabonis
Copy link

sabonis commented May 31, 2022

This line is without two space after it.
This line should be after the first line at the same line.

@ziqinyeow
Copy link

ziqinyeow commented May 31, 2022

test
test

@dcompane
Copy link

dcompane commented Jun 1, 2022

Date Who What
2022-06-01 I did it 1. Change handling of url pattern to add numbers
2. Added script to GitHub.

The code
| Date | Who | What |
| - | - | - |
| 2022-06-01 | I did it | 1. Change handling of url pattern to add numbers <br> 2. Added script to GitHub.|

The <br> is an in-line html that should not be used. Is there another way to do it? I could not find one. Of course, I do not want it as below.

Date Who What
2022-06-01 I did it 1. Change handling of url pattern to add numbers.
2. Added script to GitHub.

The code
| Date | Who | What |
| - | - | - |
| 2022-06-01 | I did it | 1. Change handling of url pattern to add numbers.|
| | | 2. Added script to GitHub.|

@shadow2609
Copy link

shadow2609 commented Jun 8, 2022

what if we want to copy and paste from elsewhere? how to make to line breaks appear as it it(If the content is too big)

@thyoondev
Copy link

thyoondev commented Jun 10, 2022

te
\
\
st

@alexxuyang
Copy link

alexxuyang commented Jun 11, 2022

awesome

@tomekbielaszewski
Copy link

tomekbielaszewski commented Jun 19, 2022

yeah man! Thanks

@xmy314
Copy link

xmy314 commented Jun 20, 2022

header1 header2
does this work
like a br between two code block
does this work?
like a br outside of code block

okay finally a way. thank you for this thread

@jmason888
Copy link

jmason888 commented Jun 25, 2022

This is an interesting inconsistency.

Source How it renders
in README.md
How it renders
in a comment
Hello(<-- no space)
World
Hello World
 
Hello
World

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment