Possible Duplicate:
Unbalanced blank lines after inline HTML comments might break formatting


<!-- please keep this list updated! --->
* 1
* 2
* 3

The JS renders:

  • 1
  • 2
  • 3

The site renders:

* 1 * 2 * 3

I didn't put the above in blockquotes as the JS and the C# implementations of Markdown agree on not rendering the list if it is blockquoted, so clicking Edit wouldn't have reproduced the problem..

  • Markdown handling of HTML comments sucks :\ I keep wondering why they got handled by the implementation, but no word about them appears in the "spec". – balpha Mar 30 '11 at 10:54
  • @balpha Well, if you put anything but a blank line right before a list, the list won't be rendered. I guess a comment also counts (although it probably shouldn't.) – badp Mar 30 '11 at 10:56
  • Yeah, the whole HTML comment handling is borked. Some of the regexes are seriously broken, and unfortunately in a way that causes subtle differences in the Markdown implementations to cause different results. That's why it's pretty hard to at least make it consistent between client and server version. – balpha Mar 30 '11 at 11:17