fixing unbalanced markdown