Skip to content

Commit

Permalink
Fix #154: pandoc warning during exercise knit (#155)
Browse files Browse the repository at this point in the history
* Fix #154: pandoc warning during exercise knit

Fixes this warning:

[WARNING] This document format requires a nonempty <title> element.
  Please specify either 'title' or 'pagetitle' in the metadata.
  Falling back to 'exercise.knit.utf8'

* Update NEWS
  • Loading branch information
jcheng5 authored Mar 26, 2018
1 parent 6feaf64 commit cf6430c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
learnr 0.9.3
===========

* Fixed a spurious console warning when running exercises using Pandoc 2.0. ([#154](https://github.com/rstudio/learnr/issues/154))

learnr 0.9.2
===========

Expand Down
3 changes: 2 additions & 1 deletion R/exercise.R
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@ evaluate_exercise <- function(exercise, envir) {
knitr = knitr_options,
pandoc = NULL,
base_format = rmarkdown::html_fragment(
df_print = exercise$options$exercise.df_print
df_print = exercise$options$exercise.df_print,
pandoc_args = c("--metadata", "pagetitle=PREVIEW")
)
)

Expand Down

0 comments on commit cf6430c

Please sign in to comment.