LILY-366: only replace links with href