Skip to content

Commit 01493c6

Browse files
committed
make post-render.R work with quarto preview
1 parent 0b2036b commit 01493c6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

post-render.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ files <- stringr::str_remove(files, "_site/")
77
files <- paste0(files, ".md")
88

99
remove_double_newlines <- function(file) {
10+
if (file == ".md") {
11+
return(NULL)
12+
}
1013
txt <- readr::read_lines(file)
1114
txt <- paste(txt, collapse = "\n")
1215
txt <- stringr::str_replace_all(txt, "\n{2,}", "\n\n")

0 commit comments

Comments
 (0)