原來 GitHub 的 markdown 語法有 Alerts 可以使用
覺得我們的內容實用嗎? MyApollo 電子報讀者募集中!歡迎訂閱電子報!
剛好看到人家在聊 GitHub 的 markdown 有支援 Alerts,如下圖。
Alerts 是基於 blockquote 語法的擴充,有 NOTE, TIP, IMPORTANT, WARNING, CAUTION 五種,使用也很簡單,範例如下:
> [!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.
以後寫出漂亮文件又有新花招可以使用啦!