Skip to content

Replace style="R" with CSS class for downstream styling support #2995

@dieghernan

Description

@dieghernan

Hi,

Would it be possible to change this line to use a class instead of a style attribute, for example:

<span class="R">R</span>

(or something similar, such as class="R-tag")

as_html.tag_R <- function(x, ...) '<span style="R">R</span>'

Currently style="R" is not valid inline CSS, so it has no effect and cannot be targeted easily from custom CSS files.

Using a class would make the element properly stylable and easier to customize downstream.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions