r-lib / urlchecker

Run CRAN URL checks from older versions of R
https://urlchecker.r-lib.org/
GNU General Public License v3.0
45 stars 5 forks source link

use commonmark to find autolinks #5

Closed maelle closed 3 years ago

maelle commented 3 years ago

Fix #4

maelle commented 3 years ago

With this I get the expected

urlchecker::url_check("/home/maelle/Documents/R-hub/example")
#> fetching [ 0 / 3 ]fetching [ 1 / 3 ]fetching [ 2 / 3 ]                       processing [ 0 / 3 ]processing [ 1 / 3 ]processing [ 2 / 3 ]                         
#> x Error: vignettes/lala.Rmd:10:6 404: Not Found
#>  Oh, https://masalmon.eu/405.
#>      ^~~~~~~~~~~~~~~~~~~~~~~
#> x Error: man/foo.Rd:13:11 404: Not Found
#> See \href{https://masalmon.eu/406}{something} and \samp{localhost:1313}.
#>           ^~~~~~~~~~~~~~~~~~~~~~~

Created on 2020-11-20 by the reprex package (v0.3.0.9001)

for https://github.com/maelle/example