converting docs to markdown