evilstreak/markdown-js — pull request #139 by eviltrout (2013-10-09 15:54:34+00:00)
Title: FIX: HTML blocks should not be surrounded by `<p>`

Part of the Markdown spec specifies that if html tags are present in their own block they should not be surrounded by paragraphs. This patch checks to see if a block begins with an HTML tag before surrounding it in a paragraph.

A secondary part changes the debugging method to not complain if the JsonML fragment that comes back is a string. I suppose previously everything had a tag around it!