Can HTML subtables without captions be rendered as PDFs? #8655
-
DescriptionCan subtables in HTML (rather than markdown) be rendered as PDFs when those subtables lack subcaptions? When I do so, I get a lua error: "C:/Program Files/Quarto/share/filters/main.lua:17131: attempt to index a nil value" (see below) Error running filter C:/Program Files/Quarto/share/filters/main.lua: Here is my minimal example: ---
title: "test"
format: pdf
---
:::: {#tbl-test layout-ncol="2"}
::: {#tbl-test1}
```{=html}
<table>
<thead>
<tr>
<th>test</th>
<th>test</th>
</tr>
</thead>
<tbody>
<tr>
<td>test</td>
<td>test</td>
</tr>
</tbody>
</table>
```
:::
::: {#tbl-test2}
```{=html}
<table>
<thead>
<tr>
<th>test</th>
<th>test</th>
</tr>
</thead>
<tbody>
<tr>
<td>test</td>
<td>test</td>
</tr>
</tbody>
</table>
```
:::
Test
:::: When the subtables have subcaptions, everything works fine, but when they lack subcaptions, I get the lua error. I'm using Quarto 1.4.59 on Windows 10 Enterprise. Thank you for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is a bug. Thank you for the clean repro! |
Beta Was this translation helpful? Give feedback.
This is a bug. Thank you for the clean repro!