Skip to content

Commit

Permalink
fix for oldrel
Browse files Browse the repository at this point in the history
  • Loading branch information
zkamvar committed May 4, 2022
1 parent 6457cb8 commit 6e2b08f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-make_pandoc_alt.R
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@

test_that("make_pandoc_alt() converts alt text good", {

f <- textConnection(c("![has alt text](img1.png)",
f <- textConnection(paste(c("![has alt text](img1.png)",
"",
"![](needs-alt.png)",
"",
"![ ](decorative.png)",
"",
"![has alt text](img2.png){: .class}", ""))
"![has alt text](img2.png){: .class}", ""), collapse = "\n"))
body <- tinkr::to_xml(f)$body
ns <- tinkr::md_ns()
images <- xml2::xml_find_all(body, ".//md:image", ns = ns)
Expand Down

0 comments on commit 6e2b08f

Please sign in to comment.