Skip to content

Commit f0b4380

Browse files
Update .ci/linters/md/heading_id_linter.R
Co-authored-by: Michael Chirico <[email protected]>
1 parent 2588040 commit f0b4380

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.ci/linters/md/heading_id_linter.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# ensure that ids are limited to alphanumerics and dashes
22
# (in particular, dots and underscores break the links)
33
check_header_ids = function(md) {
4-
if (!grepl('[.]Rmd$', md)) return()
4+
if (!grepl('[.]Rmd$', md)) return(invisible())
55
md = readLines(md)
66
# A bit surprisingly, some headings don't start with a letter.
77
# We're interested in those that set an id to link to, i.e., end with {#id}.

0 commit comments

Comments
 (0)