Skip to content
Discussion options

You must be logged in to vote

I have a workaround, but using the div syntax and execution:

---
title: Demo
format: ipynb
filters:
  - restore-cells.lua
---

I expect this .qmd when rendered to ipynb to contain two Markdown and two code cells.

::: {#fig-test}

```{python}
print("This renders to part of a Markdown cell.")
```

:::

Inline label:

```{python}
# | label: fig-test2
print("This renders to part of a Markdown cell.")
```

But instead I got a single Markdown cell. @fig-test is not being rendered as a code cell.

```{python}
print("This renders to a code cell.")
```
  • restore-cells.lua
--- @module "restore-cells"
--- @license MIT
--- @copyright 2026 Mickaël Canouil
--- @author Mickaël Canouil
--- @version 1.0.0

Replies: 3 comments 11 replies

Comment options

You must be logged in to vote
11 replies
@PhilChodrow
Comment options

@mcanouil
Comment options

@mcanouil
Comment options

@mcanouil
Comment options

Answer selected by PhilChodrow
@PhilChodrow
Comment options

@mcanouil
Comment options

@mcanouil
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
crossref engines-jupyter Anything related to Jupyter engine lua Issues related to the lua codebase, filter chain, etc
2 participants