added linebreak support to all kableExtra functions
diff --git a/R/group_rows.R b/R/group_rows.R
index c7531b1..f93a4d7 100644
--- a/R/group_rows.R
+++ b/R/group_rows.R
@@ -154,8 +154,8 @@
   }
 
   if (escape) {
-    group_label <- escape_latex(group_label)
-    group_label <- gsub("\\\\", "\\\\\\\\", group_label)
+    group_label <- escape_latex2(group_label)
+    group_label <- linebreak(group_label, align = latex_align, double_escape = TRUE)
   }
 
   if(bold){