how to make a new line in a jupyter markdown cell

amenbo picture amenbo · Jan 28, 2017 · Viewed 154.6k times · Source

md $S$: a set of shops $I$: a set of items M wants to get

I'd like to make a new line between this two sentences. We usually put " (space)" after the first sentence before a new line, but it doesn't work in Jupyter.

How can I do this? Should I put "enter" twice after the first sentence?

Answer

Woooody Amadeus picture Woooody Amadeus · Apr 18, 2017

Just add <br> where you would like to make the new line.

$S$: a set of shops
<br>
$I$: a set of items M wants to get

Because jupyter notebook markdown cell is a superset of HTML.
http://jupyter-notebook.readthedocs.io/en/latest/examples/Notebook/Working%20With%20Markdown%20Cells.html

Note that newlines using <br> does not persist when exporting or saving the notebook to a pdf (using "Download as > PDF via LaTeX"). It is probably treating each <br> as a space.