yihui/xfun

How to comment out a code fence block?

jarauh opened this issue · 1 comments

The following does not work with prose_index:

<!--```{r}
... some code that is commented out ...
```-->

Apparently, prose_index believes that ```--> starts a new code fence.


xfun::session_info() R version 3.6.3 (2020-02-29) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows Server x64 (build 14393), RStudio 1.2.5001 Locale: LC_COLLATE=German_Germany.1252 LC_CTYPE=German_Germany.1252 LC_MONETARY=German_Germany.1252 LC_NUMERIC=C LC_TIME=German_Germany.1252 Package version: askpass_1.1 assertthat_0.2.1 backports_1.1.5 base64enc_0.1-3 BH_1.72.0.3 bookdown_0.18 broom_0.5.5 callr_3.4.2 cellranger_1.1.0 cli_2.0.2 clipr_0.7.0 colorspace_1.4-1 compiler_3.6.3 crayon_1.3.4 curl_4.3 data.table_1.12.8 DBI_1.1.0 dbplyr_1.4.2 desc_1.2.0 devEMF_3.7 digest_0.6.25 dplyr_0.8.4 ellipsis_0.3.0 evaluate_0.14 extrafont_0.17 extrafontdb_1.0 fansi_0.4.1 farver_2.0.3 flextable_0.5.9 forcats_0.5.0 fs_1.3.1 gdtools_0.2.1 generics_0.0.2 ggplot2_3.3.0 glue_1.3.1 graphics_3.6.3 grDevices_3.6.3 grid_3.6.3 gtable_0.3.0 haven_2.2.0 highr_0.8 hms_0.5.3 htmltools_0.4.0 httr_1.4.1 isoband_0.2.0 jsonlite_1.6.1 kableExtra_1.1.0 knitr_1.28 labeling_0.3 lattice_0.20-38 lifecycle_0.2.0 lubridate_1.7.4 magrittr_1.5 markdown_1.1 MASS_7.3.51.5 Matrix_1.2-18 methods_3.6.3 mgcv_1.8-31 mime_0.9 modelr_0.1.6 munsell_0.5.0 nlme_3.1-144 officer_0.3.7 openssl_1.4.1 pillar_1.4.3 pkgbuild_1.0.6 pkgconfig_2.0.3 pkgload_1.0.2 plogr_0.2.0 plyr_1.8.5 praise_1.0.0 prettyunits_1.1.1 processx_3.4.2 progress_1.2.2 ps_1.3.2 purrr_0.3.3 R6_2.4.1 RColorBrewer_1.1.2 Rcpp_1.0.3 readr_1.3.1 readxl_1.3.1 rematch_1.0.1 reprex_0.3.0 reshape2_1.4.3 rlang_0.4.5 rlist_0.4.6.1 rmarkdown_2.1 rprojroot_1.3.2 rstudioapi_0.11 Rttf2pt1_1.3.8 rvest_0.3.5 scales_1.1.0 selectr_0.4.2 splines_3.6.3 stats_3.6.3 stringi_1.4.6 stringr_1.4.0 strip_1.0.0 sys_3.3 systemfonts_0.1.1 testthat_2.3.2 tibble_2.1.3 tidyr_1.0.2 tidyselect_1.0.0 tidyverse_1.3.0 tinytex_0.20 tools_3.6.3 utf8_1.1.4 utils_3.6.3 uuid_0.1-4 vctrs_0.2.3 viridisLite_0.3.0 webshot_0.5.2 whisker_0.4 withr_2.1.2 xfun_0.12 XML_3.99.0.3 xml2_1.2.2 yaml_2.2.1 zip_2.0.4
--
 
  |  
 

By filing an issue to this repo, I promise that

  • I have fully read the issue guide at https://yihui.org/issue/.
  • I have provided the necessary information about my issue.
    • If I'm asking a question, I have already asked it on Stack Overflow or RStudio Community, waited for at least 24 hours, and included a link to my question there.
    • If I'm filing a bug report, I have included a minimal, self-contained, and reproducible example, and have also included xfun::session_info('xfun').
    • If I have posted the same issue elsewhere, I have also mentioned it in this issue.
  • I have learned the Github Markdown syntax, and formatted my issue correctly.

I understand that my issue may be closed if I don't fulfill my promises.

yihui commented

Should be fixed now. Thanks for the report!