replace rdoc to md