fix markdown v html syntax errors