Skip to content

Could one set formatting preferences for a whole Rmd? #4

Open
@maelle

Description

@maelle

This is either my reading the docs wrong or asking for a feature. 🙏

Say I want all the backgrounds to be blue, at the moment if I follow correctly I need to set the argument value in each flair()/txt_style() call. Would it be possible/valuable to add a mechanism to set a theme/set of options for a document?

For instance there could be an option,

options(flair.style = list(background = "pink", color = "CornflowerBlue"))

and then in

https://github.com/kbodwin/flair/blob/566453d0c1cf26183d969f4c9f774a174f2d5b3a/R/txt_style.R#L46

list(...) could be combined with getOptions("flair.style", NULL)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions