Reworked markdown.clj; See in-file comments for details.