css_inline | R Documentation |
Given an HTML string, the css_inline()
function will render that into HTML
with CSS inlined into the style
attribute of HTML tags.
css_inline(html)
html |
HTML provided as a string. |
A character vector of length one which contains the transformed HTML text.
# Take an HTML string and inline the CSS into the tags css_inline(html = "<style>div{color:blue;}</style><div/>")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.