transforming to md style