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.8.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ All changes included in 1.8:
- ([#12554](https://github.com/quarto-dev/quarto-cli/pull/12554)): CSS properties `font-weight` and `font-style` are translated to Typst `text` properties.
- ([#12695](https://github.com/quarto-dev/quarto-cli/issues/12695)): Resolve Typst `font-paths` that start with `/` relative to project root.
- ([#12739](https://github.com/quarto-dev/quarto-cli/pull/12739)): Remove unused variable `heading-background-color` and `heading-decoration` from Typst's templates. They are leftover from previous change, and not part of Brand.yml schema for typography of headings.
- ([#12815](https://github.com/quarto-dev/quarto-cli/issues/12815)): Do not crash when floats have no content.

### `beamer`

Expand Down
3 changes: 3 additions & 0 deletions src/resources/filters/quarto-post/typst.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ function render_typst()
},
{
FloatRefTarget = function(float)
if float.content == nil then
return float
end
if float.content.t == "Table" then
-- this needs the fix from https://github.com/jgm/pandoc/pulls/9778
float.content.classes:insert("typst-no-figure")
Expand Down
10 changes: 10 additions & 0 deletions tests/docs/smoke-all/2025/05/23/issue-12815.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: "Untitled"
format: typst
---


::: {#tbl-mtcars .cell tbl-cap='Head of mtcars'}

:::

Loading