Skip to content

Instantly share code, notes, and snippets.

@mkrogh
Created September 15, 2011 21:22
Show Gist options
  • Save mkrogh/1220514 to your computer and use it in GitHub Desktop.
Save mkrogh/1220514 to your computer and use it in GitHub Desktop.
Markdown syntax oddity

One would suspect that the following markdown code would yield first an un-ordered list followed by an ordered list.

  • An item
  • Another item
  • Just an extra item to make it interesting
  1. First you would expect this ordered list item to be a separate list due to the double linebreak
  2. Secondly you would not expect the above item to be wrapped in a paragraph tag.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment