Skip to content

Commit

Permalink
👀 Fix some icons not showing in xaringan
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchelloharawild committed Dec 13, 2020
1 parent c1ac971 commit 98b71a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/knit.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ knit_print.icon <- function(x, ...) {
return(knitr::asis_output(""))
}
if(out_type == "html"){
return(knitr::asis_output(htmltools::htmlPreserve(gsub('"', "'", format(x)))))
return(knitr::asis_output(htmltools::htmlPreserve(paste0("\n", gsub('"', "'", format(x))))))
}

height <- as.numeric(str_extract(
Expand Down

0 comments on commit 98b71a2

Please sign in to comment.