Add support for markdown file extensions

Fixes #856

By the way @cjp are there any other Markdown extensions in common use?