[英]Footnote inline styling with kableExtra
默認情況下, footnote
中的escape
參數設置為TRUE
。 這意味着您嘗試包含在腳注中的任何 html 都將被 html 轉義,因此它將呈現為字符串而不是被解釋為實際的 html。
幸運的是,您可以將其關閉:
library(kableExtra)
mtcars[1:5,] %>%
kable(caption = "why this <span style='color: red;'>is red</span>") %>%
footnote(general_title = "",
general = "and this<span style='color: red;'> is too?</span>",
escape = FALSE)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.