Lots of fixes to Markdown Editor.