Skip to content

Commit

Permalink
fix #56: the $body$ variable should never be treated as a file path
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Dec 11, 2024
1 parent 6975ca4 commit ef969ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/mark.R
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ mark = function(input, output = NULL, text = NULL, options = NULL, meta = list()
clever = isTRUE(options[['cleveref']])
if (format == 'latex') ret = latex_refs(ret, r_ref, clever) else clever = FALSE

meta$body = ret
meta$body = I(ret)

# use the template (if provided) to create a standalone document
if (is.character(template)) {
Expand Down

0 comments on commit ef969ba

Please sign in to comment.