change links to reference links in markdown