tests/testthat/test-rd2markdown-href.R

test_that("rd2markdown href works on links with url target", {
  rd <- rawRd("\\href{www.test.com}{test}")
  expect_silent(md <- rd2markdown(rd))
  expect_equal(md, "[test](www.test.com)")
})
Genentech/rd2markdown documentation built on Feb. 28, 2025, 1:27 p.m.