#################### From linkify-it-py #################### .. package-meta:: linkify-it-py tsutsu3/linkify-it-py `linkify-it-py `_ is the pure-Python link scanner that `markdown-it-py `_ pulls in. It is a faithful port of the JavaScript ``linkify-it``: given a run of plain text, ``LinkifyIt().match(text)`` returns the link spans it finds and ``LinkifyIt().test(text)`` reports whether any exist. It knows URLs with a ``scheme://`` authority, bare domains gated by an IANA TLD table, and a set of fuzzy heuristics for bare IPs, ``@`` mentions, and email addresses. Its scope stops at *locating* links: turning a span into an ```` tag and skipping text that is already markup are the caller's job, which is why markdown-it-py wraps it in its own autolink rule. turbohtml covers the same ground with an HTML-aware, fully type-annotated API. :class:`~turbohtml.clean.LinkDetector` locates spans the way ``match``/``test`` do, and :func:`~turbohtml.clean.linkify` goes one step further: it parses the HTML, rewrites eligible text runs into ```` tags, and leaves URLs that already sit inside an ````, ``