sindresorhus / generate-github-markdown-css

Generate the CSS for github-markdown-css
MIT License
380 stars 77 forks source link

Add support for alerts #26

Closed sandydoo closed 11 months ago

sandydoo commented 11 months ago

Description

Adds support for the following markdown alerts. Works great with marked-alert.

Example

> [!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.

[!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.

Issues

The alerts in the fixture aren't being rendered correctly by GitHub's markdown endpoint. Maybe it hasn't been updated yet? I've used the rendered alerts here to find the right classes to add to the allow list.