Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix bookdown::html_document2 cross-ref #1949

Merged
merged 2 commits into from
Jan 30, 2025

Conversation

olivroy
Copy link
Collaborator

@olivroy olivroy commented Jan 30, 2025

Summary

@nielsbock I verified that the captions still work with pdf documents.

In #1800, there was

-   lab1 <- "(#"
+   lab1 <- "(\\#"

I suspect this was required to make it work with LaTeX?

Therefore, I just branched it and make gt emit a different string whether latex or not.

Verified that the example in the linked issue renders in both bookdown::html_document2 and bookdown::pdf_document2.

(edit: pkgdown CI failure unrelated)

Related GitHub Issues and PRs

Checklist

@olivroy olivroy requested a review from rich-iannone January 30, 2025 14:48
Copy link
Member

@rich-iannone rich-iannone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks!

@rich-iannone rich-iannone merged commit 355ba08 into rstudio:master Jan 30, 2025
11 of 12 checks passed
@olivroy olivroy deleted the bookdown-cap branch January 30, 2025 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Numbered table captions broken
2 participants