#danlyketantek, It's the evolution of a parser I wrote back in late '97 or early '98. A mix of "things that look good in email", embedded HTML (for a limited number of tags and attributes that are legal inside paragraphs), and MediaWiki (because at some point I moved an MW site over to it)