Is there a way to execute carriage returns in a markdown section of an IPython notebook so that when executed the text remains on separate lines (as displayed when typing), rather than combining all text into a single block of text?
Below is my input (and how it displays while typing), followed by the resulting output when the markdown section is executed.
Input:
XXXX [carriage return]
YYYY [carriage return]
ZZZZ [carriage return]
Output:
XXXX YYYY ZZZZ
I am able to create paragraphs by typing text, [carriage return], [space], text, [carriage return] (see below), but I am unable to display consecutive individual lines of text without some placeholder on the line between each line of text.
Input:
Paragraph 1 [carriage return] [space]
Paragraph 2 [carriage return] [space]
Paragraph 3
Output:
Paragraph 1
Paragraph 2
Paragraph 3
Am I missing something easy?
As per the Markdown specification,
<br>
tags can be inserted by ending a line with two or more spaces:So something like
(using
␣
to represent spaces) should work.You can simply put 2 spaces after
xxxx [2 spaces + enter], yyyy [2 spaces + enter] and zzzz [2 spaces + enter]
.