Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 1.56 KB

Hard line breaks.md

File metadata and controls

40 lines (25 loc) · 1.56 KB

{{($page.frontmatter.start = 654) ? null : null}}

Hard line breaks

A line break (not in a code span or HTML tag) that is preceded by two or more spaces and does not occur at the end of a block is parsed as a hard line break (rendered in HTML as a <br /> tag):

For a more visible alternative, a backslash before the line ending may be used instead of two spaces:

More than two spaces can be used:

Leading spaces at the beginning of the next line are ignored:

Line breaks can occur inside emphasis, links, and other constructs that allow inline content:

Line breaks do not occur inside code spans

or HTML tags:

Hard line breaks are for separating inline content within a block. Neither syntax for hard line breaks works at the end of a paragraph or other block element: