Markdown: Moved markdown parsing to its own module

Fixes #43