Skip to content

Instantly share code, notes, and snippets.

@zentrope
Last active May 17, 2018 03:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zentrope/e45dcdedbfb73b6d1fa663dee82290ab to your computer and use it in GitHub Desktop.
Save zentrope/e45dcdedbfb73b6d1fa663dee82290ab to your computer and use it in GitHub Desktop.
Bullet paragraph spacing

GitHub Style Bullet Paragraphs

The following list should not have blank lines between each bulleted line when rendered in Marked:

  • apples
  • oranges
  • a long line of test here that might wrap depending on the width of the window, etc, etc.
  • cucumbers
  • yogurt

The following list should have lines between the bulleted paragraphs (and does once uploaded to github):

  • foo: The foo is for when you need to whatever the something.

  • bar: The bar is where you go when the data doesn't parse correctly.

  • lorem: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enimad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

  • quux: Is your favorite lizard overlord.

On Github, and on the previous version of Marked (2.4?), the bullets in the second case had a blank line between them, as if each were a separate paragraph, as indicated here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment