format md correctly