• [^] # Re: Tests avec redcarpet-2.2.2

    Posté par (site web personnel) . En réponse à l’entrée du suivi Les URLs IPv6 ne sont pas supportées. Évalué à 2 (+0/-0).

    [3] pry(main)> LFMarkdown.render("coin http://127.0.0.1/ pan")
    => "<p>coin <a href=\"http://127.0.0.1/\">http://127.0.0.1/</a> pan</p>\n"
    [4] pry(main)> LFMarkdown.render("Exemples RFC2732 http://[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]:80/index.html http://[.&checktime(1080,0,0,':'):0:8:800:200C:417A]/index.html http://[3ffe:2a00:100:7031::1] http://[1080::8:800:200C:417A]/foo http://[::192.9.5.5]/ipng http://[::FFFF:129.144.52.38]:80/index.html")
    => "<p>Exemples RFC2732 http://[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]:80/index.html http://[.&checktime(1080,0,0,':'):0:8:800:200C:417A]/index.html http://[3ffe:2a00:100:7031::1] http://[1080::8:800:200C:417A]/foo http://[::192.9.5.5]/ipng http://[::FFFF:129.144.52.38]:80/index.html</p>\n"
    
    

    Dans ./ext/redcarpet/autolink.c , la vérification de domaine ou d'URL semble exiger des caractères alphanumériques à la recherche d'un nom de domaine ou d'une IPv4, donc pas les crochets ou les deux points.