Major improvements to Markdown reader