Open levibaguley opened 3 months ago
The plot thickens. It's actually not the fact that the code is in a sub-list that breaks running the cell, it's the fact that the code is under list items that have a letter used. Again, it renders just fine.
---
title: "Code Cell In Lists"
format: typst
---
Here is a list with some code cells
1. This is item 1.
a. This is item 1.a
```{python}
# Run Cell doesn't work since ```{python} is sent
print("Hello from item 1.a")
This is item 2.
This is item 2.1
# Run Cell works. ```{python} is not included
print("Hello from item 2.1")
This is item 2.1.1
# Run Cell works. ```{python} is not included
print("Hello from item 2.1.1")
![image](https://github.com/quarto-dev/quarto/assets/48003136/17ed1113-6c6c-4f42-9d61-c6113d0b69c7)
I'm using using quarto with the vscode extension. When I have a python cell as part of a sub-list item and I run the cell, it attempts to run the whole cell along with the fenced code delimiter . Here is an example:
This is item 2.
Note that this document renders perfectly with item 1a indented more than the code in item 2. It's just that the interactive portion isn't working.