Skip to content

Commit

Permalink
specify the package name in \link[]
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Jun 23, 2021
1 parent ab4ca53 commit cab26ef
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
9 changes: 5 additions & 4 deletions R/utils-conversion.R
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,15 @@ knit2pdf = function(
#' Convert markdown to HTML using knit() and markdownToHTML()
#'
#' This is a convenience function to knit the input markdown source and call
#' \code{markdown::\link{markdownToHTML}()} in the \pkg{markdown} package to
#' convert the result to HTML.
#' \code{markdown::\link[markdown]{markdownToHTML}()} in the \pkg{markdown}
#' package to convert the result to HTML.
#' @inheritParams knit
#' @param ... Options passed to \code{markdown::\link{markdownToHTML}()}.
#' @param ... Options passed to
#' \code{markdown::\link[markdown]{markdownToHTML}()}.
#' @param force_v1 Boolean; whether to force rendering the input document as an
#' R Markdown v1 document, even if it is for v2.
#' @export
#' @seealso \code{\link{knit}}, \code{markdown::\link{markdownToHTML}}
#' @seealso \code{\link{knit}}, \code{markdown::\link[markdown]{markdownToHTML}}
#' @return If the argument \code{text} is NULL, a character string (HTML code)
#' is returned; otherwise the result is written into a file and the filename
#' is returned.
Expand Down
9 changes: 5 additions & 4 deletions man/knit2html.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cab26ef

Please sign in to comment.