Skip to content

Add GFM alerts extension#420

Open
ia3andy wants to merge 1 commit intocommonmark:mainfrom
ia3andy:gfm-alerts
Open

Add GFM alerts extension#420
ia3andy wants to merge 1 commit intocommonmark:mainfrom
ia3andy:gfm-alerts

Conversation

@ia3andy
Copy link
Contributor

@ia3andy ia3andy commented Mar 3, 2026

Note

I have used Claude to code most of it, I am currently reviewing the generated code which seems to be overall valid. I've requested to follow the pattern of existing extensions (and compare to other implementations of this feature).

Summary

  • Adds new extension module for GitHub Flavored Markdown alerts
  • Implements parser for alert blockquote syntax (> [!NOTE], > [!WARNING], etc.)
  • Includes HTML, Markdown, and text content renderers
  • Supports all five standard GFM alert types: NOTE, TIP, IMPORTANT, WARNING, CAUTION
  • Allows custom alert types via builder API
  • Includes comprehensive test coverage and documentation

Closes #327

@ia3andy ia3andy marked this pull request as draft March 3, 2026 16:05
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@ia3andy ia3andy marked this pull request as ready for review March 3, 2026 16:37
@ia3andy
Copy link
Contributor Author

ia3andy commented Mar 3, 2026

I've been through the code which seems good to me so I can say I am taking responsibilities for it like my own. Still, another set of eyes would be good :)

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.

GFM admonition blocks (alerts)

1 participant