Using flair to highlight `<-` is not supported in bs4_book?

I use flair package to highlight <- in R code.

```{r, warning=FALSE, message=FALSE}

```{r how_to_pipe, include = FALSE}

df <- iris %>%
  group_by(Species) %>%

```{r, echo = FALSE}

decorate("how_to_pipe") %>% 


it work correctly inRmarkdown. However, when I copy above code to bs4_book, I got this

> xfun::session_info('bookdown')
R version 4.0.5 (2021-03-31)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19043), RStudio 2021.9.0.351

  LC_COLLATE=Chinese (Simplified)_China.936  LC_CTYPE=Chinese (Simplified)_China.936   
  LC_MONETARY=Chinese (Simplified)_China.936 LC_NUMERIC=C                              
  LC_TIME=Chinese (Simplified)_China.936    

Package version:
  base64enc_0.1.3 bookdown_0.24.1 digest_0.6.28   evaluate_0.14   fastmap_1.1.0  
  glue_1.4.2      graphics_4.0.5  grDevices_4.0.5 highr_0.9       htmltools_0.5.2
  jquerylib_0.1.4 jsonlite_1.7.2  knitr_1.36      magrittr_2.0.1  methods_4.0.5  
  rlang_0.4.11    rmarkdown_2.11  stats_4.0.5     stringi_1.7.4   stringr_1.4.0  
  tinytex_0.34    tools_4.0.5     utils_4.0.5     xfun_0.26       yaml_2.2.1
> sessioninfo::platform_info()
 setting  value                         
 version  R version 4.0.5 (2021-03-31)  
 os       Windows 10 x64                
 system   x86_64, mingw32               
 ui       RStudio                       
 language (EN)                          
 collate  Chinese (Simplified)_China.936
 ctype    Chinese (Simplified)_China.936
 tz       Asia/Taipei                   
 date     2021-10-18 

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.