Open
Description
I think this may be more likely to pop up in python, since you can use _
as a variable name 😬. I'm using knitr v1.30.
Rmarkdown code:
---
title: "code examples"
output:
xaringan::moon_reader:
lib_dir: libs
nature:
ratio: '16:9'
countIncrementalSlides: false
---
```{python test}
a = 1
_ = 2
_ = 3
```
```{r}
library(flair)
decorate("test") %>% flair("a")
```
Output (note italics in very bottom 2 lines):
Looking at the source, it seems that html tags are escaped (for remarkjs?), but underscores are left as is.