-
Notifications
You must be signed in to change notification settings - Fork 394
Open
Labels
bugSomething isn't workingSomething isn't workingdark-modedark mode and switching between light and dark modesdark mode and switching between light and dark modeslayoutthemesRelated to HTML theming or any other style related issue (like highlight-style)Related 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.Issues that were not self-assigned, signals that an issue was assigned to someone.
Description
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)
```
:::
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingdark-modedark mode and switching between light and dark modesdark mode and switching between light and dark modeslayoutthemesRelated to HTML theming or any other style related issue (like highlight-style)Related 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.Issues that were not self-assigned, signals that an issue was assigned to someone.