Hmmm...interesting. I use Github's markdown API, worth giving that a shot.