Skip to content

Commit

Permalink
open link in new tab
Browse files Browse the repository at this point in the history
  • Loading branch information
ElenaMetori committed Nov 23, 2023
1 parent 7597ca4 commit 4a68cbb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/bs4_book.R
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,7 @@ template_link <- function(html, xpath, href) {
xml2::xml_remove(xml2::xml_parent(node))
} else {
xml2::xml_attr(node, "href") <- href
xml2::xml_attr(node, "target") <- "_blank"
}
}

Expand Down

0 comments on commit 4a68cbb

Please sign in to comment.