quarto-dev / quarto-dev/quarto-cli

Manuscript projects do not support panel tabset

Open
#9,376 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug engines-knitr manuscript tabsets
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

Manuscript projects do not seem to support the panel tabset chunk option. Only writing the div elements directly will generate the tabset in the HTML document. See below for a reproducible example. Additionally, I get this warning with both approaches: "Warning: couldn't recognize format, using default tabset rendering"

---
title: "Tabset"
format: html
---

## Working

::: {.panel-tabset .column-page}

### Scatterplot

```{r}
#| echo: false
#| output: asis
plot(cars)
```

### Histogram

```{r}
#| echo: false
#| output: asis
hist(rnorm(40), nclass = 5)
```

:::

## Not working

```{r}
#| panel: tabset
#| output: asis
 
x <- list("Scatterplot" = plot(cars), "Histogram" = hist(rnorm(40), nclass = 5))

for (n in names(x)) {

    cat("###", n, "\n")

    print(x[[n]])

    cat("\n\n")

}
```

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reproducible manuscript example in the issue and compare the direct panel-tabset markup with the chunk using the panel option. Trace the path that emits the “couldn't recognize format” warning and verify that the chunk form produces the same tabset in the HTML output without the warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
html, r
Domain
web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.