> Using the message templates function allows you to use any "view" format (like erb or haml) to generate messages. 
It doesn't matter in which templating engine you call the markdown function. But I didn't realize markdown passes on original html tags. brb, fixing some xss injections.