Bug description
I'm not sure if this issue belongs to quarto or kableExtra, but leaving the report here. Please let me know if this should be reported to kableExtra.
Please see below for reprex.
Edit: The issue is related to pdf output.
---
title: "test_quarto"
format: pdf
---
Knitr
Without label
#| tbl-cap: "Example1"
#| tbl-subcap:
#| - "Cars"
#| - "Pressure"
#| layout-ncol: 1
knitr::kable(head(iris))
knitr::kable(tail(iris))
Works fine
With label
#| label: tbl-example1
#| tbl-cap: "Example2"
#| tbl-subcap:
#| - "Cars"
#| - "Pressure"
#| layout-ncol: 1
knitr::kable(head(iris))
knitr::kable(tail(iris))
Works fine
KableExtra
Without label
It generates two additional empty labels: (a),(b),(c),(d)
#| tbl-cap: "Example3"
#| tbl-subcap:
#| - "Cars"
#| - "Pressure"
#| layout-ncol: 1
kableExtra::kable(head(iris))
kableExtra::kable(tail(iris))
With label
#| label: tbl-example4
#| tbl-cap: "Example4"
#| tbl-subcap:
#| - "Cars"
#| - "Pressure"
#| layout-ncol: 1
kableExtra::kable(head(iris))
kableExtra::kable(tail(iris))
Works now.
Running on RStudio build 353 / R4.2.2
Checklist
Bug description
I'm not sure if this issue belongs to
quartoorkableExtra, but leaving the report here. Please let me know if this should be reported tokableExtra.Please see below for reprex.
Edit: The issue is related to
pdfoutput.Knitr
Without label
Works fine
With label
Works fine
KableExtra
Without label
It generates two additional empty labels: (a),(b),(c),(d)
With label
Works now.
Running on RStudio build 353 / R4.2.2
Checklist