You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Table references work when a huxtable is in an R Markdown document rendered to output bookdown::html_document2, but not when a huxtable is in a document rendered to output blogdown::html_page.
Minimal Reproducible Example
See https://github.com/joshuaborn/minimal-example. Table numbering and references work for the huxtables when bookdown-article.Rmd is rendered, but not when blogdown-article.Rmd is rendered. Table numbering and references work for the kable versions of tables in both documents. Manually calling set_label has no effect.
Expected behavior huxtables should be labeled, and references to them should work. The documentation for blogdown::html_page states that it "is a simple wrapper of bookdown::html_document2() with different default arguments," so if table references work with bookdown::html_document2, they should work with with blogdown::html_page.
System details
I am using the latest versions of R and relevant packages.
Thanks for this. Could you check if setting options(huxtable.bookdown = TRUE) works? I'm also about to push a fix to master, please test it using remotes::install_github("hughjonesd/huxtable")
I verified just now that the table references in a blogdown page work with options(huxtable.bookdown = TRUE) with v5.4.0 of huxtable, and independently without options(huxtable.bookdown = TRUE) using the HEAD of this repo.
Thanks for your prompt attention, and more importantly, thanks for all your work on huxtable!
Describe the bug
Table references work when a
huxtable
is in an R Markdown document rendered to outputbookdown::html_document2
, but not when a huxtable is in a document rendered to outputblogdown::html_page
.Minimal Reproducible Example
See https://github.com/joshuaborn/minimal-example. Table numbering and references work for the
huxtable
s whenbookdown-article.Rmd
is rendered, but not whenblogdown-article.Rmd
is rendered. Table numbering and references work for thekable
versions of tables in both documents. Manually callingset_label
has no effect.Expected behavior
huxtables
should be labeled, and references to them should work. The documentation forblogdown::html_page
states that it "is a simple wrapper ofbookdown::html_document2()
with different default arguments," so if table references work withbookdown::html_document2
, they should work with withblogdown::html_page
.System details
I am using the latest versions of R and relevant packages.
Stack Overflow issue
Note: This began as a question on Stack Overflow: https://stackoverflow.com/questions/72045792/why-is-table-numbering-not-working-with-blogdownhtml-page-but-working-with-bo
The text was updated successfully, but these errors were encountered: