markdown cleanup