tests/testthat/test-pandoc_convert.R

test_that("pandoc conversion works", {
  skip_if_not(rmarkdown::pandoc_available())
  x <- pandoc_convert(
    text = "\\section{Test}",
    from = "latex",
    to = "markdown")
  expect_true(
    identical(x, "Test\n====") ||
      identical(x, "# Test"))
})

Try the flexsiteboard package in your browser

Any scripts or data that you put into this service are public.

flexsiteboard documentation built on Nov. 16, 2022, 1:11 a.m.