style_set | R Documentation |
A style set contains information on how to style the various tags in a markdown text. While it is not necessary to provide a style for all tags (it will just inherit the parent if missing), it is required to provide a complete style for the body tag so an option is avialable through inheritance for all tags and all style options. It can often be easier to derive a new style set from an existing one rather than building one from scratch.
style_set(...)
modify_style(style_set, tag, ...)
remove_style(style_set, tag)
... |
Named arguments providing a style for the specific tags. For
|
style_set |
A style set to modify |
tag |
The name of a tag to modify or remove. Tags are internally all
lowercase and |
A marquee_style_set
object
# Create a style
s_set <- style_set(base = base_style(), p = style(indent = em(2)))
# Modify an existing tag
modify_style(s_set, "p", size = 16)
# Add a new tag, supplying a full style object
modify_style(s_set, "str", style(weight = "bold"))
# Same as above, but style object created implicitly
modify_style(s_set, "str", weight = "bold")
# Remove a tag style
remove_style(s_set, "p")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.