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

Feature request: support Github callouts #2361

Closed
etiennebacher opened this issue Oct 28, 2023 · 1 comment
Closed

Feature request: support Github callouts #2361

etiennebacher opened this issue Oct 28, 2023 · 1 comment

Comments

@etiennebacher
Copy link

Hello, this is a feature request related to rstudio/rmarkdown#2523

Github callouts were introduced about 1.5 years ago. They have a specific syntax, like this:

> [!NOTE]
> Highlights information that users should take into account, even when skimming.

> [!IMPORTANT]
> Crucial information necessary for users to succeed.

> [!WARNING]
> Critical content demanding immediate user attention due to potential risks.

which renders like this on Github:

image

I would like to use this kind of syntax in the README of some packages, but for now pkgdown ignores this syntax. Here's an example repo (https://github.com/etiennebacher/pkgdown.callout) and its website (https://etiennebacher.github.io/pkgdown.callout/).

Is it possible to support this kind of callouts in pkgdown websites?

@hadley
Copy link
Member

hadley commented Oct 30, 2023

Unfortunately, it's going to be difficult to justify supporting these just for the README, when we have other mechanisms for doing callouts in vignettes. However, you might trying to see if these could be supported by RMarkdown/Quarto so that you could use a single syntax and then generate the GitHub specific syntax when generating the README.

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

No branches or pull requests

2 participants