diff --git a/R/build_book.R b/R/build_book.R index 8341436..d3460fa 100644 --- a/R/build_book.R +++ b/R/build_book.R @@ -14,8 +14,8 @@ appendices <- function(manual, manual_path = "manuals") { stringr::str_extract("^@appendix (.*)$") %>% na.omit() %>% c() %>% - # replace all punctuation except hyphen - gsub(r"([!\"#$%&'()*+,./:;<=>?@[\\]^_`\{|\}~])", "", .) %>% + # replace all punctuation except hyphen and underscore + gsub(r"([!\"#$%&'()*+,./:;<=>?@[\\]^`\{|\}~])", "", .) %>% gsub("@appendix ", "", .) %>% gsub("[[:space:]]", "-", .)