Fixed #450
diff --git a/R/scroll_box.R b/R/scroll_box.R
index 39405cf..a1d1835 100644
--- a/R/scroll_box.R
+++ b/R/scroll_box.R
@@ -30,7 +30,10 @@
                        extra_css = NULL,
                        fixed_thead = TRUE
                        ) {
-
+  kable_format <- attr(kable_input, "format")
+  if (kable_format != "html") {
+    return(kable_input)
+  }
   kable_attrs <- attributes(kable_input)
   fixed_thead <- get_fixed_thead(fixed_thead)
   if (is.null(height)) fixed_thead$enabled <- FALSE