allow markdown in profile

Lets users use markdown format in their profiles. Please please please review to see if XSS is possible :)
Might be cleaner to add a function in tplib rather than add another global. :)