Move Markdown support into separate file.