Skip to content

Commit

Permalink
Merge pull request #788 from haozhu233/caption_fix
Browse files Browse the repository at this point in the history
Document behavior of special chars in caption.
  • Loading branch information
dmurdoch authored Dec 4, 2023
2 parents a12a79a + a599fdf commit 9cfbb7c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions R/kbl.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@
#' `knitr` version 1.45. If you are using an older
#' or newer version, some of the default values may be different.
#'
#' @note In `knitr::kable()`, the `escape` parameter does not affect the text
#' in the `caption` argument, and `kbl()` inherits this
#' behavior. This means that special characters
#' in the caption (such as "%" for LaTeX output)
#' need to be escaped by the user, e.g.
#' written as `"\\%"`.
#'
#' @param table.attr A character string for addition HTML table attributes.
#' This is convenient if you simply want to add a few HTML classes or styles.
#' For example, you can put 'class="table" style="color: red"'.
Expand Down
7 changes: 7 additions & 0 deletions man/kbl.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9cfbb7c

Please sign in to comment.