diff --git a/R/rj_article.R b/R/rj_article.R
index f63af8b..5447837 100644
--- a/R/rj_article.R
+++ b/R/rj_article.R
@@ -10,13 +10,12 @@
#' and `rticles::rjournal_article()` for pdf articles.
#' @inheritParams distill::distill_article
#' @param legacy_pdf whether an article is from the past and only have pdf version
-#' @param web_only additional param for embedding PDF or using Rmd to produce HTML
#' @importFrom rlang caller_env env_poke
#' @return the rendered R Journal article
#' @export
#' @rdname rjournal_article
rjournal_article <- function(toc = FALSE, self_contained = FALSE,
- legacy_pdf = FALSE, web_only = !legacy_pdf, ...) {
+ legacy_pdf = FALSE, ...) {
args <- c()
base_format <- distill::distill_article(
self_contained = self_contained, toc = toc, ...
@@ -149,7 +148,7 @@ rjournal_article <- function(toc = FALSE, self_contained = FALSE,
output_dir) {
# Add embedded PDF
- embed_pdf <- if(! web_only){
+ embed_pdf <- if(legacy_pdf){
whisker::whisker.render(
'