Skip to content

In cell column: margin doesn't work with renderings: [light, dark]? #13825

@cderv

Description

@cderv

Discussed in https://github.com/orgs/quarto-dev/discussions/13811

Originally posted by tentacles-from-outer-space December 18, 2025

Description

Is it known issue that this options doesn't work together? Is it related to cell cross-reference with renderings option? Or I am missing something?

---
title: "Untitled"
format:
  html:
    theme:
      light: flatly
      dark: darkly
---

```{r}
table_light <- data.frame(x = "I am light mode table", y=1)
table_dark <- data.frame(x = "DARK MODE", y=2)
```

# dark/light mode - works

```{r}
#| renderings: [light, dark]

knitr::kable(table_light)
knitr::kable(table_dark)
```

# to the Margin - works

```{r}
#| column: margin

knitr::kable(table_light)
knitr::kable(table_dark)
```

# both together - not work

```{r}
#| column: margin
#| renderings: [light, dark]

knitr::kable(table_light)
knitr::kable(table_dark)
```

# with explicit div - works

::: {.column-margin}

```{r}
#| renderings: [light, dark]

knitr::kable(table_light)
knitr::kable(table_dark)
```

:::
Image

Metadata

Metadata

Labels

bugSomething isn't workingdark-modedark mode and switching between light and dark modeslayoutthemesRelated to HTML theming or any other style related issue (like highlight-style)triaged-toIssues that were not self-assigned, signals that an issue was assigned to someone.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions