Replace links with link fragment