fix #1063 -- get Markdown to output <pre>

This is #1063.

This makes Markdown output code in a reST-like style.

Also fixes Markdown extension support.