This is a very simplified version of how Textile works and also adds some fixes if you use the same HTML in a flash feed or widget.