change documents to markdown