Skip to content

Conversation

@benkeks
Copy link
Contributor

@benkeks benkeks commented Mar 13, 2025

Closes #12259.

As described in #12259, Tippy.js popups on crossrefs fails if the previewed entity contains KaTeX math elements. This seems to be due to double rendering where the data attribute is unset on the second pass. Just skipping the invocation of the KaTeX renderer in these instances solves the issue.

Checklist

I have (if applicable):

  • filed a contributor agreement.
  • referenced the GitHub issue this PR closes
  • updated the appropriate changelog in the PR
  • ensured the present test suite passes
  • added new tests
  • created a separate documentation PR in Quarto's website repo and linked it to this PR

... I feel that most of the list does not quite apply for this minor change. But I can look into Contributor Agreement and changelog tomorrow if desired.

As described in quarto-dev#12259, Tippy.js popups on crossrefs failed if the
previewed entity contained KaTeX math elements. This seems to be
due to double rendering where the `data` attribute is unset on
the second pass. Just skipping the invocation of the KaTeX renderer
in these instances solves the issue.
@cscheid
Copy link
Collaborator

cscheid commented Mar 14, 2025

Thank you for the PR! We very much appreciate it.

@cderv do you think it's feasible to create a playwright test that would verify that this behavior is fixed? The change makes sense but it would be great if we added coverage here.

@cderv cderv self-assigned this Mar 17, 2025
@cscheid cscheid added this to the v1.8 milestone Apr 2, 2025
@posit-snyk-bot
Copy link
Collaborator

posit-snyk-bot commented May 5, 2025

🎉 Snyk checks have passed. No issues have been found so far.

security/snyk check is complete. No issues have been found. (View Details)

license/snyk check is complete. No issues have been found. (View Details)

@cderv cderv merged commit 9b5fc6f into quarto-dev:main May 5, 2025
49 checks passed
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.

Incompatibility of KaTeX math and Tippy popups on cross references

4 participants