clean-up of markdown code