fixed the layout probems of md to html