Open n-crespo opened 9 months ago
Linking the official documentation which has the full list of available options https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts
This would require a plugin for markdown-it. I'm unable to find one on npm.
It looks like there's this now: https://www.npmjs.com/package/markdown-it-github-alerts.
In Github flavored markdown, a note or "alert" can be created with the following syntax:
and the note will appear with an icon like so:
Here is an screenshot:
[!Important]
and[!Warning]
have a similar layout.This is not supported in markdown preview, and I would love to see it implemented. I understand, however, if the goal of the plugin is to support vanilla markdown, not the GitHub flavor.