在Rmarkdown中的R chunk之后缩进的子弹点

fil*_*s21 5 r r-markdown

有没有办法在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)

我明白了:
在此输入图像描述

Ral*_*ner 9

您应该相对于它所属的列表项缩进任何代码块,即第一个和第二个代码块:

## 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)

除了正确处理新列表项之外,这种方式在代码块工作后继续列表项:

在此处输入图片说明