Open jmaspons opened 3 months ago
Confirming GH alert blocks don't work in vignettes either. Nor do quarto callouts in quarto vignettes.
There are at least two issues:
So, I think this would be a fair bit of work to incoporate into pkgdown.
FWIW, I also tried the following, which also doesn't work:
---
format: gfm
---
::: {.callout-note}
Note that there are five types of callouts, including:
`note`, `warning`, `important`, `tip`, and `caution`.
:::
Render that with quarto to README.md. If you click the "Render" button in RStudio it will use quarto to create README.md.
But unfortunately callouts are not currently supported in the quarto gfm
format.
Yet another alternative is to create an README.qmd file but leave output: github_document
in the YAML header. In this case, clicking Render will generate a README.html file that has correctly formatted quarto callouts. But I'm not sure what would happen if you add this to your GitHub repo --- My guess is that the README.md would continue to take precedence over README.html, as GH doesn't usually serve HTML files.
Also this is a dup of #2361.
But this issue from quarto makes me think the format: gfm
strategy should work?
I also wonder if there are other features we can access using a README.qmd
document with format: gfm
.
See Alerts
An example of alerts not rendered in pkgdown VS rendered on gh