Alerts are not recognized when they include a title #689

Open
opened 2026-01-29 14:43:04 +00:00 by claunia · 2 comments
Owner

Originally created by @mkoppmann on GitHub (Jul 25, 2024).

Obsidian allows adding titles to alerts/callouts. When Markdig parses an alert with a title, it is recognized as a QuoteBlock instead of an AlertBlock. It would be nice if Markdig could support the optional title.

> [!NOTE] Custom Title
> Lorem Ipsum

The behavior is consistent with the way GitHub displays alerts with titles though:

[!NOTE] Custom Title
Lorem Ipsum

Originally created by @mkoppmann on GitHub (Jul 25, 2024). Obsidian allows [adding titles to alerts/callouts](https://help.obsidian.md/Editing+and+formatting/Callouts#Change+the+title). When Markdig parses an alert with a title, it is recognized as a `QuoteBlock` instead of an `AlertBlock`. It would be nice if Markdig could support the optional title. ```markdown > [!NOTE] Custom Title > Lorem Ipsum ``` The behavior is consistent with the way GitHub displays alerts with titles though: > [!NOTE] Custom Title > Lorem Ipsum
claunia added the question label 2026-01-29 14:43:04 +00:00
Author
Owner

@xoofx commented on GitHub (Jul 30, 2024):

The behavior is consistent with the way GitHub displays alerts with titles though:

Yes, markdig implements the official GitHub Alert. You can GitHub to add support to title maybe here

@xoofx commented on GitHub (Jul 30, 2024): > The behavior is consistent with the way GitHub displays alerts with titles though: Yes, markdig implements the official GitHub Alert. You can GitHub to add support to title maybe [here](https://github.com/orgs/community/discussions/16925)
Author
Owner

@szalkerous commented on GitHub (Aug 15, 2024):

I noticed the Typora editor creates these as well and they aren't handled in many parsers. I'd love to see this implemented, either natively or via a plugin.

@szalkerous commented on GitHub (Aug 15, 2024): I noticed the Typora editor creates these as well and they aren't handled in many parsers. I'd love to see this implemented, either natively or via a plugin.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#689