md_convert | R Documentation |
Take a character vector of valid markdown text and pass it to
markdown::markdownToHTML()
to create a glue vector of HTML fragments.
Primarily used to test that md_*()
functions create vectors that meet the
GFM spec and can be rendered as HTML.
md_convert(x, frag = TRUE, disallow = TRUE)
x |
A character vector of markdown text to be converted. |
frag |
logical; Whether only a single HTML fragment should be returned.
|
disallow |
logical; Should |
GFM enables the tagfilter
extension, where the following HTML tags will be
filtered when rendering HTML output...
A glue
vector of length 1 containing HTML tags.
Other inline functions:
md_autolink()
,
md_bold()
,
md_code()
,
md_disallow()
,
md_escape()
,
md_hardline()
,
md_image()
,
md_issue()
,
md_italic()
,
md_link()
,
md_softline()
,
md_strike()
,
md_text()
md_convert(x = md_bold("test"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.