change ref to markdown