Convert rdoc format to markdown