有没有办法在Rmarkdown(带HTML输出)的R块之后继续使用缩进项目符号点的列表?当我尝试这个:
## R Markdown
1. First item in list
+ run this R code:
```{r cars}
# code...
```
+ Continuing a list at the same level after an R chunk works.
2. Second item
```{r}
# example code
```
+ Continuing a list at an increased level of indentation doesn't work.
Run Code Online (Sandbox Code Playgroud)
您应该相对于它所属的列表项缩进任何代码块,即第一个和第二个代码块:
## R Markdown
1. First item in list
+ run this R code:
```{r cars}
# code...
```
and look at the output
+ Continuing a list at the same level after an R chunk works.
2. Second item
```{r}
# example code
```
+ Continuing a list at an increased level of indentation does work.
Run Code Online (Sandbox Code Playgroud)
除了正确处理新列表项之外,这种方式在代码块工作后继续列表项: