Skip to content

Add GitHub-style alert/admonition rendering for NOTE/TIP/IMPORTANT/WARNING/CAUTION#52

Merged
ThisIs-Developer merged 9 commits intomainfrom
copilot/add-support-for-admonitions
Mar 25, 2026
Merged

Add GitHub-style alert/admonition rendering for NOTE/TIP/IMPORTANT/WARNING/CAUTION#52
ThisIs-Developer merged 9 commits intomainfrom
copilot/add-support-for-admonitions

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 25, 2026

  • Inspect current alert icon implementation and confirm target files
  • Run existing project validation command(s) before editing
  • Replace alert SVG paths with Font Awesome icon paths (note/tip/important/warning/caution)
  • Re-run validation to confirm no regressions
  • Run automated code review and security scan
Original prompt

This section details on the original issue you should resolve

<issue_title>Feature Request: Add Support for Admonitions/Alerts 🌀</issue_title>
<issue_description># Overview

This issue requests adding support for GitHub-style admonitions/alerts as part of the Markdown parsing + generation!

Expected Behavior ✔️

The following admonitions/Alerts are correctly parsed and displayed in Markdown Viewer:

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

Current Behaior ⚠️

Admonitions/Alerts are displayed as raw text (shared Link/example):

Markdown Viewer Example

Notes + Possible Options ⚙️


[!IMPORTANT]

Thank you for creating this viewer!

Didn't find any related issues/PR's so figured I'd create this one to collect notes + ideas...</issue_description>

Comments on the Issue (you are @copilot in this section)


📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
markdown-viwer Ready Ready Preview, Comment Mar 25, 2026 11:38am

Co-authored-by: ThisIs-Developer <109382325+ThisIs-Developer@users.noreply.github.com>
Agent-Logs-Url: https://github.com/ThisIs-Developer/Markdown-Viewer/sessions/f710fab7-1abb-4b80-9730-df6d03e47289
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Mar 25, 2026

Deploying markdown-viewer with  Cloudflare Pages  Cloudflare Pages

Latest commit: 60981e9
Status: ✅  Deploy successful!
Preview URL: https://3cee5fd5.markdown-viewer.pages.dev
Branch Preview URL: https://copilot-add-support-for-admo.markdown-viewer.pages.dev

View logs

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Mar 25, 2026

Deploying markdownviewer with  Cloudflare Pages  Cloudflare Pages

Latest commit: 60981e9
Status: ✅  Deploy successful!
Preview URL: https://d2b58d40.markdownviewer.pages.dev
Branch Preview URL: https://copilot-add-support-for-admo.markdownviewer.pages.dev

View logs

Co-authored-by: ThisIs-Developer <109382325+ThisIs-Developer@users.noreply.github.com>
Agent-Logs-Url: https://github.com/ThisIs-Developer/Markdown-Viewer/sessions/f710fab7-1abb-4b80-9730-df6d03e47289
Co-authored-by: ThisIs-Developer <109382325+ThisIs-Developer@users.noreply.github.com>
Agent-Logs-Url: https://github.com/ThisIs-Developer/Markdown-Viewer/sessions/f710fab7-1abb-4b80-9730-df6d03e47289
Copilot AI changed the title [WIP] Add support for GitHub-style admonitions in Markdown Add GitHub-style alert/admonition rendering for NOTE/TIP/IMPORTANT/WARNING/CAUTION Mar 25, 2026
Copilot AI requested a review from ThisIs-Developer March 25, 2026 07:33
Co-authored-by: ThisIs-Developer <109382325+ThisIs-Developer@users.noreply.github.com>
Agent-Logs-Url: https://github.com/ThisIs-Developer/Markdown-Viewer/sessions/84385004-bd3c-4cc3-b710-45a4fd6d69e2
Co-authored-by: ThisIs-Developer <109382325+ThisIs-Developer@users.noreply.github.com>
Agent-Logs-Url: https://github.com/ThisIs-Developer/Markdown-Viewer/sessions/84385004-bd3c-4cc3-b710-45a4fd6d69e2
Co-authored-by: ThisIs-Developer <109382325+ThisIs-Developer@users.noreply.github.com>
Agent-Logs-Url: https://github.com/ThisIs-Developer/Markdown-Viewer/sessions/83f65a4f-ae77-4dfd-89db-e665a971c32d
Co-authored-by: ThisIs-Developer <109382325+ThisIs-Developer@users.noreply.github.com>
Agent-Logs-Url: https://github.com/ThisIs-Developer/Markdown-Viewer/sessions/7a7f788a-ac86-476b-afbb-d2cd30792f53
Co-authored-by: ThisIs-Developer <109382325+ThisIs-Developer@users.noreply.github.com>
Agent-Logs-Url: https://github.com/ThisIs-Developer/Markdown-Viewer/sessions/7a7f788a-ac86-476b-afbb-d2cd30792f53
@ThisIs-Developer ThisIs-Developer marked this pull request as ready for review March 25, 2026 12:03
@ThisIs-Developer ThisIs-Developer merged commit f8b70ec into main Mar 25, 2026
6 checks passed
@ThisIs-Developer ThisIs-Developer deleted the copilot/add-support-for-admonitions branch March 25, 2026 12:05
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

Successfully merging this pull request may close these issues.

Feature Request: Add Support for Admonitions/Alerts 🌀

2 participants