fix markdown rendering of references