markdown: Implement most of the remaining Renderer.

Add test.
Tables and references are currently unimplemented.