Skip to content

Escaping [, ] character outside of code blocks is buggy in markdown mode #720

@mb706

Description

@mb706

Trying to escape [ characters outside of code blocks generates broken .Rd files.

Examples (in the description block, but the bug occurs in other blocks as well):

#' \[ test \] description

generates

\description{
[ test ] description

[ test ]: R:%20test%20%5C
}

A way around this is currently to only escape the beginning [ character:

#' \[ test ] description

to get

\description{
[ test ] description
}

However, I have not found a way to put a link between escaped brackets (without resorting to \link):

#' \[ [test] ] description

gives (also when escaping both outer [ and ]):

\description{
[ [test] ] description

[ [test]: R:%20[test
}

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