tests/testthat/test-6.12-hard-line-breaks.R

library(testthat)
library(gluedown)
library(rvest)
library(glue)

test_that("md_hardline creates a <br /> tag (ex. 655)", {
  # https://github.github.com/gfm/#example-655
  x <- c("foo", "baz")
  x %>%
    md_hardline() %>%
    md_convert() %>%
    read_html() %>%
    html_node("br") %>%
    expect_full()
})

Try the gluedown package in your browser

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

gluedown documentation built on Nov. 2, 2023, 5:48 p.m.