Skip to content

Commit 0098721

Browse files
committed
use the exported xfun::is_rel_path()
1 parent 5720b2d commit 0098721

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: bookdown
22
Type: Package
33
Title: Authoring Books and Technical Documents with R Markdown
4-
Version: 0.21.3
4+
Version: 0.21.4
55
Authors@R: c(
66
person("Yihui", "Xie", role = c("aut", "cre"), email = "[email protected]", comment = c(ORCID = "0000-0003-0645-5666")),
77
person("JJ", "Allaire", role = "ctb"),

R/html.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1032,7 +1032,7 @@ move_files_html = function(output, lib_dir) {
10321032
f = gsub('[?#].+$', '', f) # strip the #/? part in links, e.g. a.html#foo
10331033
f = gsub('^[.]/', '', f) # strip the initial ./, e.g. ./foo.png -> foo.png
10341034
f = f[f != '']
1035-
f = f[!knitr:::is_abs_path(f)]
1035+
f = f[xfun::is_rel_path(f)]
10361036
if (getOption('bookdown.js.debug', FALSE)) f = c(f, js_min_sources(f))
10371037
# add leaflet images if any used
10381038
f = c(f, grep('png$', list.files(

0 commit comments

Comments
 (0)