Rewrite of the markdown function.

Removed ending PHP tag.