(edit: small change to correct a typo)

### Bug description

When creating a Jupyter notebook using Quarto, I'm attempting to use fenced divs to explicitly separate notebook cells, using the examples in the [Pandoc manual](https://pandoc.org/MANUAL.html#jupyter-notebooks).

This works for a simple example when I do `quarto render simple.qmd --to ipynb` - the second section is rendered in a new cell. (I'm running on Windows 10, Quarto v1.2.280)

````
---
title: Simple version
---

# Lorem ipsum

**Lorem ipsum** dolor sit amet, consectetur adipiscing elit. Nunc luctus
bibendum felis dictum sodales.

:::::: {.cell .markdown}
# Lorem ipsum

**Lorem ipsum** dolor sit amet, consectetur adipiscing elit. Nunc luctus
bibendum felis dictum sodales.
::::::
````

However, when I attempt to make the content conditional as well, all the content is combined in one Markdown cell.

````
---
title: Conditional version
---

::: {.content-visible when-format="ipynb"}

# Lorem ipsum

**Lorem ipsum** dolor sit amet, consectetur adipiscing elit. Nunc luctus
bibendum felis dictum sodales.

:::::: {.cell .markdown}
# Lorem

**Lorem ipsum** dolor sit amet, consectetur adipiscing elit. Nunc luctus
bibendum felis dictum sodales.
::::::

:::
````



### Checklist

- [X] Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- [X] Please [format your issue](https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us) so it is easier for us to read the bug report.
- [X] Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [X] Please document the operating system you're running. If on Linux, please provide the specific distribution.
cscheid
2023-01-04T15:23:34Z
tomsutch
bug
v1.3
closed
ipynb output: explicitly separating notebook cells not possible with conditional content
https://github.com/quarto-dev/quarto-cli/issues/3847