I've encountered this strange bug, when there is code into a block _and_ the document needs to execute code with jupyter.

Here is a mwe.

<pre>
```{python}
for i in range(3):
    print(i)
```

#. Un processus est:

   - [ ] statique
   - [ ] dynamique

#. Un programme est:

   ```python
   print("CODE")
   ```

   - [ ] statique
   - [ ] dynamique
</pre>

Converts markdown loosing the _indentation_ of the blocks.

<pre>
1.  Un processus est:

-   [ ] statique
-   [ ] dynamique

1.  Un programme est:

``` python
print("CODE")
```

-   [ ] statique
-   [ ] dynamique
</pre>

If you remove any or the two code blocks(the executable or the other), markdown is correct. Of course this issue is propagated to all output formats `html`, `tex`...

2022-01-06T18:35:54Z
benabel
closed
Markdown blocks handled incorrectly when code is runned with jupyter
https://github.com/quarto-dev/quarto-cli/issues/250