Open natecostello opened 2 months ago
FYI, the feature seems to be working only for HTML-based formats. @cscheid Is it a known limitation currently not stated? https://prerelease.quarto.org/docs/authoring/contents.html
This is a consequence of https://github.com/quarto-dev/quarto-cli/issues/7062 and related bugs. The problem, specifically, is that the label is being assigned to the image rather than the cell in this case:
## A section
Here we define a plot.
::: {.cell execution_count=1}
::: {.cell-output .cell-output-display}
![](10671_files/figure-pdf/a-cell-output-1.pdf){#a-cell}
:::
:::
In HTML, we produce this:
## A section
Here we define a plot.
::: {#cell-a-cell .cell execution_count=1}
::: {.cell-output .cell-output-display}
![](10671_files/figure-html/a-cell-output-1.png){#a-cell width=579 height=411}
:::
:::
Note that now there's a cell-a-cell
id on the resulting div.
Bug description
This relates to Feature 10552.
When I try and output, to pdf, the minimal example in the documentation. I get this a malformed document and an incorrect output:
Output:
Steps to reproduce
Another section
Here we use the plot, inside a callout:
::: callout-note
Note the following plot
{{< contents a-cell >}}
:::