Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Github markdown won't end a list

Tags:

markdown

Writing a readme in github I run into the problem that if I want a paragraph of text after a list it interprets it as just more of the list:

* List item

More text

Shows up as:

  • List item

    More text

I tried looking at a few other github repos but I can't tell why theirs are working and mine isn't.

example

like image 871
J V Avatar asked Aug 19 '13 12:08

J V


2 Answers

You can also end a Markdown list using an HTML comment <!-- -->. The comment won't be visible in the rendered output and it works also on Stack Exchange sites.

It's just important to place the comment on a separate line after the list and put an empty line both before and after it.

The comment doesn't have to have any content:

- List item 1
- List item 2

<!-- end of the list -->

    code_block() {
    ...
like image 78
David Ferenczy Rogožan Avatar answered Oct 18 '22 16:10

David Ferenczy Rogožan


You may add a new line after your list heading, and tab your list content. In this way when a new list is started it will be separate from previous list.

like image 26
jugador Avatar answered Oct 18 '22 15:10

jugador