replace latex href with url where possible