Description Usage Arguments Value References See Also Examples
Pandoc's markdown verbatim format (e.g. `FOO`
) is added to character string.
1 2 | pandoc.verbatim.return(x, style = c("inline", "indent", "delim"),
attrs = "")
|
x |
character vector |
style |
show code |
attrs |
(optionally) pass ID, classes and any attribute to the |
By default this function outputs (see: cat
) the result. If you would want to catch the result instead, then call the function ending in .return
.
John MacFarlane (2012): _Pandoc User's Guide_. http://johnmacfarlane.net/pandoc/README.html
pandoc.emphasis
pandoc.strikeout
pandoc.strong
1 2 3 4 5 6 7 8 9 10 11 | ## different styles/formats
pandoc.verbatim('FOO')
src <- c('FOO', 'indent', 'BAR' )
pandoc.verbatim(src)
pandoc.verbatim.return(src)
pandoc.verbatim(c('FOOO\nBAR ', ' I do R'), 'indent')
pandoc.verbatim(c('FOOO\nBAR ', ' I do R'), 'delim')
## add highlighting and HTML/LaTeX ID and classes (even custom attribute)
pandoc.verbatim(c('cat("FOO")', 'mean(bar)'), 'delim', '.R #MyCode custom_var="10"')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.