Skip to content

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

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions