How do you get rmarkdown to include a code chunk as part of a list?
Example:
- Something about some code - you could try
this_fun
- A more complicated way is to do
```{r, eval = FALSE}
a(
large(
nested(function)))
```
And that may suit your use case - Skip it all together
Originally I was using the vanilla ``` code chunk, but that gives up syntax highlighting, and inline gives up highlighting and newlines/indentation. If the code is used as above the list is broken, and the text following the chunk becomes embedded in a weird environment (something like the output formatting).
Anyone know if this can be done?