optimize md format