Skip to content

Instantly share code, notes, and snippets.

@remlapmot
Created August 25, 2022 00:19
Show Gist options
  • Save remlapmot/ff5078d55164908e1a7e1d90288d68b5 to your computer and use it in GitHub Desktop.
Save remlapmot/ff5078d55164908e1a7e1d90288d68b5 to your computer and use it in GitHub Desktop.
---
title: "Test nested lists in Quarto"
output: html
---
1. First top point
```{r}
# 4 space indent gets extra output
1 + 1
```
```{r}
# indent aligned to 'F' gives expected output but not detected in Source pane
2 + 2
```
a. First subpoint
```{r}
# 8 space indent gets extra output and is not detected in Source pane
1 + 1
```
```{r}
# indent to align with 'F' gives expected output but not detected in Source pane
2 + 2
```
1. Second top point
10. A double digit top point
```{r}
# 4 space indent gives expected output and is detected by Source pane (by coincidence??)
2 + 2
```
@remlapmot
Copy link
Author

And simpler Rmd document

---
title: "Test nested lists in R Markdown"
output: html_document
---

1. First top point
    ```{r}
    1 + 1
    ```
    a. First subpoint
        ```{r}
        # is not detected in Source pane
        1 + 1
        ```
1. Second top point

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment