Markdown improvements

Improvements to Markdown support