replace rdoc with md