1
0
mirror of https://github.com/msberends/AMR.git synced 2026-03-25 19:32:22 +01:00

(v3.0.1.9038) fix format inline

This commit is contained in:
2026-03-22 22:16:59 +01:00
parent 3d1412e8c9
commit 975a690c10
9 changed files with 21 additions and 18 deletions

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())