convert rdoc to md