Skip to content

Commit

Permalink
Add title to description
Browse files Browse the repository at this point in the history
  • Loading branch information
maksymiuks committed Jan 20, 2025
1 parent b45b934 commit c7e5286
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/rd2markdown.R
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ rd2markdown.title <- function(x, fragments = c(), ...) {
#'
#' @exportS3Method
#' @rdname rd2markdown
rd2markdown.description <- function(x, fragments = c(), ..., title = NULL, level = 2L) {
rd2markdown.description <- function(x, fragments = c(), ..., title = "Description", level = 2L) {
out <- map_rd2markdown(x, ..., collapse = "", level = level + 1)
out <- gsub("\n{1,}$", "", out)
out <- gsub("\n*\\\\lifecycle\\{(.*)\\}\n*", "\n\nLifecycle: *\\1*\n\n", out)
Expand Down

0 comments on commit c7e5286

Please sign in to comment.