markdown-guide icon indicating copy to clipboard operation
markdown-guide copied to clipboard

Line break clarification

Open ghost opened this issue 2 years ago • 3 comments

As commented here: https://github.com/mattcone/markdown-guide/commit/03c4fb323c078321d1d13a05928513ea5802bf39#r130312162

The explanation for line breaks says, To create a line break or new line (<br>), end a line with two or more spaces, and then type return.

What is end a line with two or more spaces, and then type return supposed to mean?

ghost avatar Oct 18 '23 15:10 ghost

The last characters before the return must be two or more spaces. i.e. 'some text #space character# #space character#'

mcm1957 avatar Oct 18 '23 15:10 mcm1957

@charles-plutohealth, I've created an example to help illustrate this. In the screenshot below, dots are spaces, and of course line 2 is a new line.

image

Here's the HTML that produces:

this is the first line with two spaces
<br />
and the next line

Does that make sense? I'm open to ideas about how to better explain this.

mattcone avatar Oct 19 '23 02:10 mattcone

I see! Thanks a lot for the explanations, it makes sense now. It might be more clear to say: To create a line break or new line, either end a line with two or more spaces followed by a new line, or use <br> What threw me off most was type return rather than hit Enter.

charles-plutohealth avatar Oct 23 '23 20:10 charles-plutohealth