Skip to content

Commit

Permalink
Use a div instead of span to pass HTML validation
Browse files Browse the repository at this point in the history
  • Loading branch information
rich-iannone committed Oct 5, 2023
1 parent caf2b6c commit 1761d71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -767,13 +767,13 @@ md_to_html <- function(x, md_engine) {
}
)

non_na_x <- tidy_gsub(non_na_x, "^", "<span data-qmd=\"")
non_na_x <- tidy_gsub(non_na_x, "^", "<div data-qmd=\"")
non_na_x <- tidy_gsub(non_na_x, "$", "\">")

non_na_x <-
paste0(
non_na_x, "<div class='gt_from_md'>",
non_na_x_processed, "</div></span>"
non_na_x_processed, "</div></div>"
)

#nocov end
Expand Down

0 comments on commit 1761d71

Please sign in to comment.