Format markdown properly