add HTML color support to background color
diff --git a/DESCRIPTION b/DESCRIPTION
index 2f9c2f0..5d0eae5 100644
--- a/DESCRIPTION
+++ b/DESCRIPTION
@@ -1,7 +1,7 @@
Package: kableExtra
Type: Package
Title: Construct Complex Table with 'kable' and Pipe Syntax
-Version: 0.6.1
+Version: 0.6.1.9000
Authors@R: c(
person('Hao', 'Zhu', email = 'haozhu233@gmail.com', role = c('aut', 'cre')),
person('Timothy', 'Tsai', role = 'ctb'),
diff --git a/R/column_spec.R b/R/column_spec.R
index 755c57d..eede10b 100644
--- a/R/column_spec.R
+++ b/R/column_spec.R
@@ -183,7 +183,7 @@
}
if (!is.null(background)) {
- background <- sprintf("\\\\columncolor{%s}", background)
+ background <- paste0("\\\\columncolor", latex_color(background))
}
latex_array_options <- c("\\\\bfseries", "\\\\em", "\\\\ttfamily")[
diff --git a/R/row_spec.R b/R/row_spec.R
index faa2465..6ab31ec 100644
--- a/R/row_spec.R
+++ b/R/row_spec.R
@@ -208,7 +208,7 @@
new_row <- paste(unlist(new_row), collapse = " & ")
if (!is.null(background)) {
- new_row <- paste0("\\\\rowcolor{", background, "} ", new_row)
+ new_row <- paste0("\\\\rowcolor", latex_color(background), " ", new_row)
}
return(new_row)
diff --git a/inst/NEWS.md b/inst/NEWS.md
index 8b3d3ca..5f6052f 100644
--- a/inst/NEWS.md
+++ b/inst/NEWS.md
@@ -1,3 +1,13 @@
+kableExtra 0.7.0
+* Add HTML color code support to kableExtra
+
+kableExtra 0.6.1
+--------------------------------------------------------------------------------
+* Fixed a bug in column_spec width introduced in ver 0.6.0
+
+* Fixed a bug in add_header_above. #90
+
+
kableExtra 0.6.0
--------------------------------------------------------------------------------
* Added cell_spec for HTML & LaTeX