From de7c238e510cb9ca556345ebeced23919da6fd4e Mon Sep 17 00:00:00 2001 From: Yihui Xie Date: Sat, 12 Sep 2020 23:44:50 -0500 Subject: [PATCH] fix the test from #938 (the anchor should point to section 2 instead of 2.1) --- tests/test-rmd.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test-rmd.R b/tests/test-rmd.R index 0c42a9b3a..76dfb3532 100644 --- a/tests/test-rmd.R +++ b/tests/test-rmd.R @@ -49,7 +49,7 @@ if (Sys.getenv('NOT_CRAN') == 'true') local({ # number sections now works in markdown_document2 if (!any(readLines("rmd/number-sections.md") == "1.1 subsection 1") || - !any(grepl("2.1", readLines("rmd/number-sections.md")))) { + !any(grepl("2", readLines("rmd/number-sections.md")))) { stop("Something wrong in number_sections.Rmd") } })