A Jekyll plugin to render GitHub style markdown alerts.
Important
This plugin is meant to be used by jekyll-v4-theme-primer. It will still work without it, but the styling won't be correct.
-
Add this to your
Gemfile
gem 'jekyll-github-alerts'
-
Add this to your jekyll
_config.yml
plugins: - jekyll-github-alerts
-
Use the same syntax in your markdown as you would on GitHub
> [!NOTE] > Useful information that users should know, even when skimming content.
Note
Useful information that users should know, even when skimming content.
Tip
Helpful advice for doing things better or more easily.
Important
Key information users need to know to achieve their goal.
Warning
Urgent info that needs immediate user attention to avoid problems.
Caution
Advises about risks or negative outcomes of certain actions.
For more information on GitHub style alerts check out GitHub's docs.