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

Call add_html_caption() with two arguments instead of three in Quarto #2285

Merged
merged 1 commit into from
Sep 5, 2023

Conversation

yihui
Copy link
Owner

@yihui yihui commented Sep 5, 2023

Fix #2261.

@cderv Do you think this would be a reasonable fix?

@yihui yihui requested a review from cderv September 5, 2023 14:10
Copy link
Collaborator

@cderv cderv left a comment

Choose a reason for hiding this comment

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

Yes I believe so. Old quarto redefines

add_html_caption <- function(options, x) {
  if (inherits(x, 'knit_asis_htmlwidget')) {

and new quarto like this

add_html_caption <- function(options, x, ...) {
  if (inherits(x, 'knit_asis_htmlwidget')) {

So I believe this PR will make it work for old (1.2 and before) and newer (1.3 and later).

@yihui yihui merged commit 7bc8b39 into master Sep 5, 2023
9 checks passed
@yihui yihui deleted the fix/2261 branch September 5, 2023 14:29
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update to knitr breaks quarto?
2 participants