From 46e4bc6e768b7e5c523a9b10039ee9a381b5edc9 Mon Sep 17 00:00:00 2001 From: Vincent Arel-Bundock Date: Sun, 21 Jan 2024 21:42:38 -0500 Subject: [PATCH] issue #87 --- R/build_tt.R | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/R/build_tt.R b/R/build_tt.R index 21e43969..69aaa965 100644 --- a/R/build_tt.R +++ b/R/build_tt.R @@ -97,5 +97,11 @@ finalize_bootstrap <- function(x) { "table", x, fixed = TRUE) + # Rmarkdown and Quarto load their own bootstrap, which we probably don't want to override + if (isTRUE(getOption('knitr.in.progress'))) { + out <- strsplit(out, split = "\n")[[1]] + out <- out[!grepl("https://cdn.jsdelivr.net/npm/bootstrap", out, fixed = TRUE)] + out <- paste(out, collapse = "\n") + } return(out) }