I write these posts in a markdown editor, but then need the markdown to be converted into HTML to take advantage of the browser's HTML and CSS rendering capabilities. Here, I took a test-driven approach to writing a simple parser which reads a subset of markdown elements and replaces them with HTML elements.