Skip to content

Code in markdown link text omits closing } #620

@egnha

Description

@egnha

In roxygen2 6.0.1, specifying code in markdown link text fails to generate a properly enclosed \code tag.

Example: The block

#' foo
#' @param x Leaky scope [`tryCatch`][base::tryCatch()].
foo <- function(x) NULL

produces an incomplete Rd file:

% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/foo.R
\name{foo}
\alias{foo}
\title{foo}
\usage{
foo(x)
}
\arguments{
\item{x}{Leaky scope \code{\link[base:tryCatch]{tryCatch}.}
}
\description{
foo
}

\code omits a closing }.

Is this related to #521?

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