Skip to content

Instantly share code, notes, and snippets.

@stefan2904
Last active April 12, 2017 00:05
Show Gist options
  • Save stefan2904/88747af0c59591d3e54c0d225881db1b to your computer and use it in GitHub Desktop.
Save stefan2904/88747af0c59591d3e54c0d225881db1b to your computer and use it in GitHub Desktop.
Markdown is weird
* item
* item
* item
* item
* item
* item

renders as:

  • item
  • item
  • item
  • item
  • item
  • item
* item
* item
* item

* item
* item
* item

renders as:

  • item

  • item

  • item

  • item

  • item

  • item

(--> every li has its own p now ... wtf?)

Explenation

From the Markdown "Standard":

If list items are separated by blank lines, Markdown will wrap the items in

tags in the HTML output.

* item
* item
* item
<!-- -->
* item
* item
* item

renders as:

  • item
  • item
  • item
  • item
  • item
  • item

(--> "fixed"?)

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