Nothing
context("CodeBlock")
test_that("CodeBlock", {
attr <- Attr("id", c("Programming Language"), list(c("key", "value")))
code <- "x <- 3\nprint('Hello R!')"
block <- CodeBlock(attr, code)
if ( get_pandoc_version() < 2 ) {
y <- paste("<pre id=\"id\" class=\"Programming Language\" key=\"value\"><code>x <- 3",
"print('Hello R!')</code></pre>", sep = "\n")
} else {
y <- paste("<pre id=\"id\" class=\"Programming Language\" data-key=\"value\"><code>x <- 3",
"print('Hello R!')</code></pre>", sep = "\n")
}
## Test Str with CodeBlock
x <- pandocfilters:::test(list(block))
expect_that(x, equals(y))
} )
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.