Added support for Markdown formatting

* Switched from using gfm() method to markdown(), which eventually calls gfm()
    * Previous fix (pull request 6777) caused a call stack overflow on master