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

Correctly output vec_fmt_markdown() inside Quarto #1841

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

olivroy
Copy link
Collaborator

@olivroy olivroy commented Aug 17, 2024

Fix #1840

Basically, the idea is that since vec_fmt_markdown() calls fmt_markdown() (and not the other way around, we can use some code to trick vec_fmt_markdown() to think it is not inside Quarto.

I tried using on.exit(Sys.unsetenv("QUARTO_BIN_PATH") but it didn't work for some reason. Would love to not use withr here.

I know tidyselect imports it, so gt has an indirect dep on it, but since withr 3.0 has simplified its code, it is possible they remove that dep at some point.

@olivroy olivroy requested a review from rich-iannone August 18, 2024 15:09
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.

Thank you!

@rich-iannone rich-iannone merged commit 2e77b1a into rstudio:master Aug 19, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

vec_fmt_markdown() should probably not be affected by Quarto
2 participants