Markdown writer, and some (incomplete) tests