Use `attrs` internally for the URL preview code & update documentation.