Skip to content

Issue with bullet lists in @param #1102

@lionel-

Description

@lionel-

Surfaced in r-lib/vctrs#1100.

This block:

#' Foo
#' @name foo
#'
#' @param foo
#'   * A
#'   * B
#'   * C
NULL

produces a nested bullet list:

\arguments{
\item{foo}{\itemize{
\item A
\itemize{
\item B
\item C
}
}}
}

The first workaround is to remove the indenting:

#' Bar
#' @name bar
#'
#' @param bar
#' * A
#' * B
#' * C
NULL
\arguments{
\item{bar}{\itemize{
\item A
\item B
\item C
}}
}

Or to add a header:

#' Baz
#' @name baz
#'
#' @param baz
#'   Header.
#'   * A
#'   * B
#'   * C
NULL
\arguments{
\item{baz}{Header.
\itemize{
\item A
\item B
\item C
}}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behaviormarkdown ⬇️

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions