markdown parser fixes and bugfixes