convert rdoc to markdown formatting