Skip to content

markdown support does not work within \if{latex}{} condition? #1048

@allenzhuaz

Description

@allenzhuaz

I really like the roxygen2 build markdown support with option Roxygen: list(markdown = TRUE) or @md, but when I wrote some documentation within the if{latex}{} condition, the markdown language did not work within the latex condition, even if I set the markdown support option.

Details

For example, I have to write multiple items as:
#' \if{latex}{
#' Example:
#' \itemize{
#' \item 1st item
#' \item 2nd item
#' \item 3rd item }}

rather than
#' \if{latex}{
#' Example:
#' * 1st item
#' * 2nd item
#' * 3rd item }

Similarly, for inserting a table, seemingly I am only allowed to write:
#' \if{latex}{
#' \tabular{ll}{
#' a \tab b \cr
#' c \tab d
#' }}
but not allowed to use markdown, like:
#' \if{latex}{
#' | a | b |
#' |----|----|
#' | c | d |
#' }

Can the markdown support also be implemented within LaTeX condition?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions