Use transform() function for Markdown transformation

Markdown support is now external.