Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions news/changelog-1.5.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ All changes included in 1.5:
- ([#8417](https://github.com/quarto-dev/quarto-cli/issues/8417)): Maintain a single AST element in the output cells when parsing HTML from RawBlock elements.
- ([#8582](https://github.com/quarto-dev/quarto-cli/issues/8582)): Improve the algorithm for extracting table elements from HTML RawBlock elements.
- ([#8770](https://github.com/quarto-dev/quarto-cli/issues/8770)): Handle inconsistently-defined float types and identifier names more robustly in HTML tables.
- ([#9862](https://github.com/quarto-dev/quarto-cli/issues/9862)): Fix crash with labeled tables in cells with `eval: false` and `echo: false`.

## Engines

Expand Down
3 changes: 3 additions & 0 deletions src/resources/filters/quarto-pre/table-classes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ function table_classes()
if kind ~= "tbl" then
return nil
end
if float.content == nil then
return nil
end

if (float.caption_long == nil or
float.caption_long.content == nil or
Expand Down
13 changes: 13 additions & 0 deletions tests/docs/smoke-all/2024/06/04/9862.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: "Untitled"
format: html
execute:
echo: false
---

```{r}
#| eval: false
#| label: tbl-t2
#| tbl-cap: hggfh
mtcars |> head() |> knitr::kable()
```