Skip to content

Correctly output vec_fmt_markdown() inside Quarto#1841

Merged
rich-iannone merged 1 commit intorstudio:masterfrom
olivroy:vec-fmt-md
Aug 19, 2024
Merged

Correctly output vec_fmt_markdown() inside Quarto#1841
rich-iannone merged 1 commit intorstudio:masterfrom
olivroy:vec-fmt-md

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
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