Commit aeeff8ca authored by houyun's avatar houyun
Browse files

dont modify open {

parent 80cfd3ea
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -99,7 +99,6 @@ latex_richtext <- function(x,
    x <- as.character(x)
  }
  ## more safely glue: glue always trim double {{ or }} to single
  x <- gsub("{{", "{{{{", x, fixed = TRUE)
  x <- gsub("}}", "}}}}", x, fixed = TRUE)
  x <- vapply(x, function(.x) {
    glue::glue(.x, .envir = env, .open = ".val{", .close = "}")
@@ -218,7 +217,6 @@ latex_expression <- function(x,
  }

  ## more safely glue: glue always trim double {{ or }} to single
  x <- gsub("{{", "{{{{", x, fixed = TRUE)
  x <- gsub("}}", "}}}}", x, fixed = TRUE)
  x <- vapply(x, function(.x) {
    glue::glue(.x, .envir = env, .open = ".val{", .close = "}")