Nothing
test_that("ast -> document", {
expect_snapshot_output(
cat( as_document(
parse_rmd(system.file("minimal.Rmd", package = "parsermd"))
), sep="\n")
)
expect_snapshot_output(
cat( as_document(
parse_rmd(system.file("hw01-student.Rmd", package = "parsermd"))
), sep="\n")
)
expect_snapshot_output(
cat( as_document(
parse_rmd(system.file("hw01.Rmd", package = "parsermd"))
), sep="\n")
)
expect_snapshot_output(
cat( as_document(
parse_rmd(system.file("reverse_sections.Rmd", package = "parsermd"))
), sep="\n")
)
expect_snapshot_output(
cat( as_document(
parse_rmd(system.file("raw_attr.Rmd", package = "parsermd"))
), sep="\n")
)
})
test_that("raw chunk", {
test_trans = function(x) {
expect_equal(
parsermd:::check_chunk_parser(x) %>% as_document() %>% paste(collapse="\n"),
trimws(x, which = "right")
)
}
test_trans("```{=html}\n```\n")
test_trans("```{=html}\n<h1>hello</h1>\n```\n")
test_trans(" ```{=html}\n ```\n")
test_trans(" ```{=html}\n <h1>hello</h1>\n ```\n")
})
## TODO - add checks for other nodes
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.