Skip to content

Commit

Permalink
No specific processing when inside quarto
Browse files Browse the repository at this point in the history
  • Loading branch information
cderv committed Mar 31, 2023
1 parent 77f030d commit 6c9d332
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/output.R
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,10 @@ sew.character = function(x, options, ...) {

asis_token = '<!-- KNITR_ASIS_OUTPUT_TOKEN -->'
wrap_asis = function(x, options) {
# do nothing when inside quarto as it is not needed
# https://github.com/yihui/knitr/pull/2212#pullrequestreview-1292924523
if (is_quarto()) return (x)

x = as.character(x)
if ((n <- length(x)) == 0 || !out_format('markdown') || missing(options) || !isTRUE(options$collapse))
return(x)
Expand Down

0 comments on commit 6c9d332

Please sign in to comment.