Skip to content

Commit eae4afa

Browse files
committed
provide files_dir attribute
1 parent 348ed78 commit eae4afa

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ rmarkdown 2.5
55

66
- `html_document` gains the `anchor_sections` argument, which is `TRUE` by default, so that readers can get links to section headers easily---when you mouse over a section hader, you will see a hash symbol `#` at the end of the header, which contains the anchor link to this header. You can click on this link and get the URL in the addres bar of your web browser, or right-click on it and copy the URL from the context menu. The hash symbol is defined by the CSS rule `a.anchor-section::before {content: '#';}`. You can customize it by overriding this rule (e.g., via the `css` argument of `html_document`) and use any other symbols or icons, e.g., `content: "\02AD8;"` (thanks, @atusy, #1884).
77

8+
- Provide `files_dir` as attribute on return from `render()` when `run_pandoc = FALSE`.
9+
810

911
rmarkdown 2.4
1012
================================================================================

R/render.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1011,7 +1011,10 @@ render <- function(input,
10111011
intermediates <- setdiff(intermediates, c(input, intermediates_fig))
10121012
# did not run pandoc; returns the markdown output with attributes of the
10131013
# knitr meta data and intermediate files
1014-
structure(input, knit_meta = knit_meta, intermediates = intermediates)
1014+
structure(input,
1015+
knit_meta = knit_meta,
1016+
files_dir = files_dir,
1017+
intermediates = intermediates)
10151018
}
10161019
}
10171020

0 commit comments

Comments
 (0)