mitchelloharawild / vitae

R Markdown Résumés and CVs
https://pkg.mitchelloharawild.com/vitae/
1.22k stars 237 forks source link

(hidden) links in *_entries #57

Closed MoAnd closed 5 years ago

MoAnd commented 5 years ago

Is there a way to include links and hidden links in the *_entries functions, such as in the why field or in the where field.

I'm thinking something like the Markdown link or the LaTeX \href{}{} function, or at the very least a clickable url.

data <- tibble::tibble("what" = "Machine Learning", "when" = "April 2018", "with" = "Stanford University on Coursera", "where" = NA, "why" = *HIDDEN LINK HERE*)

data %>% detailed_entries(
    what = what, 
    when = when, 
    with = with,
    where = where,
    why = why
  )

Thank you :)

Aariq commented 5 years ago

Seems like the href{}{} trick works. You just need to use two backslashes.


data <- tibble::tibble("what" = "Machine Learning", "when" = "April 2018", "with" = "Stanford University on Coursera", "where" = NA, "why" = "\\href{http://www.ericrscott.com/}{my website}")

data %>% detailed_entries(
    what = what, 
    when = when, 
    with = with,
    where = where,
    why = why
  )
mitchelloharawild commented 5 years ago

You may also need to set the argument .protect=FALSE, but the above should work.

MoAnd commented 5 years ago

Thank you, it works :)