remove bad formatting (obj) from markdown