converting RST to MD