parse online document to markdown