Skip to content

Commit

Permalink
factor out some glue
Browse files Browse the repository at this point in the history
  • Loading branch information
maxheld83 committed Nov 29, 2024
1 parent 01f1272 commit 09d2dbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/shiny2screenshot.R
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ snap_alt_text <- function() "Screenshot from App"
#' @export
snaps2md <- function(...) {
path <- snaps2fig(...)
paste0("![", snap_alt_text(), "](", path, ")", collapse = "")
glue::glue("![{snap_alt_text()}]({path})")
}

#' @describeIn get_screenshot_from_snaps
Expand Down

0 comments on commit 09d2dbe

Please sign in to comment.