(v3.0.1.9038) fix format inline

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2026-03-22 22:16:59 +01:00
1 parent 3d1412e8c9
commit 975a690c10
9 files changed
+21 -18

No files matched your search

+3
View File
@@ -423,6 +423,9 @@ highlight_code <- function(code) {
format_inline_ <- function(...) {
msg <- paste0(c(...), collapse = "")
if (pkg_is_available("cli", min_version = "3.0.0")) {
if (!cli::ansi_has_hyperlink_support()) {
msg <- simplify_help_markup(msg)
}
cli::format_inline(msg)
} else {
cli_to_plain(msg, envir = parent.frame())