Skip to content

Commit

Permalink
Change order.
Browse files Browse the repository at this point in the history
  • Loading branch information
SebKrantz committed Jun 2, 2024
1 parent 698a5b8 commit 3bd62d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/highlight.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ highlight_text <- function(text) {
text <- gsub("[(", "`[`(", text, fixed = TRUE)
text <- gsub("$(", "`$`(", text, fixed = TRUE)
# For fast-statistical-functions.Rd
text <- gsub("[keep.w = TRUE,] [stub = TRUE,] [nthreads = 1L,]", "keep.w = TRUE, stub = TRUE, nthreads = 1L,", text, fixed = TRUE)
text <- gsub(", [w = NULL,]", ", w = NULL,", text, fixed = TRUE)
text <- gsub(", [na.rm = TRUE,]", ", na.rm = TRUE,", text, fixed = TRUE)
text <- gsub(", [nthreads = 1L,]", ", nthreads = 1L,", text, fixed = TRUE)
text <- gsub("[keep.w = TRUE,] [stub = TRUE,] [nthreads = 1L,]", "keep.w = TRUE, stub = TRUE, nthreads = 1L,", text, fixed = TRUE)
out <- downlit::highlight(text, classes = downlit::classes_pandoc())
# out <- gsub("<span class='fu'>`[[`</span>", "<span class='fu'>[[</span>", out, fixed = TRUE)
# out <- gsub("<span class='fu'>`[`</span>", "<span class='fu'>[</span>", out, fixed = TRUE)
Expand Down

0 comments on commit 3bd62d1

Please sign in to comment.