reformat doc with markdown