mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-03 21:36:36 +00:00
Alert within a list #723
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @EMaderbacher on GitHub (Feb 26, 2025).
I've for example following markdown:
Till Version 0.39.1 it's rendered like that:
Starting with Version 0.40 it's rendered like that:
Is there any chance to get the alert rendered in same way as it was before 0.40?
@MihaZupan commented on GitHub (Apr 14, 2025):
Note that this was an intentional change in #842 to match GitHub's behavior where alerts must be top-level blocks.
An alternative way to go about it could be to post-process quote blocks instead and turn them into alerts.
Something like
@phil-scott-78 commented on GitHub (Dec 10, 2025):
I'm using alerts in a slightly different fashion, with a custom container block. But same applies for me.
Having an opt-in option to allow nested content would be nice. I was gonna just swap out for a custom parser because my case is a bit out there, but I still need
which is internal