-
Notifications
You must be signed in to change notification settings - Fork 321
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Escape html in comments in author info from DESCRIPTION #1204
Conversation
Maybe it should even use Example comment <- "Kramer reviewed the package for ropensci,
see <https://github.com/ropensci/software-review/issues/256>"
pkgdown:::linkify(comment)
#> [1] "Kramer reviewed the package for ropensci,\n see <<a href='https://github.com/ropensci/software-review/issues/256'>https://github.com/ropensci/software-review/issues/256</a>>" Created on 2020-01-16 by the reprex package (v0.3.0) |
Thanks, looks good! |
@@ -26,3 +26,14 @@ test_that("names can be removed from persons", { | |||
expect_length(remove_name(p4$comment, "ORCID"), 0) | |||
expect_length(remove_name(p5$comment, "ORCID"), 0) | |||
}) | |||
|
|||
test_that("Comments in authors info are linkified", { | |||
p <- list(name = "Jane Doe", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please use standard tidyverse styling?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, now I think it looks like https://style.tidyverse.org/syntax.html#long-lines :-)
Thanks! |
cc @jeroen
fix #1205