Skip to content

Bug: GitHub-flavored alerts cannot be nested (with errors) #3512

@shigma

Description

@shigma

Describe the bug

  • Blockquotes can be nested.
  • Custom blocks can be nested.
  • But GitHub-flavored alerts cannot (with errors).
> case 1
>
> > nested content

:::: tip
case 2

::: warning
nest content
:::
::::

> [!TIP]
> case 3
>
> > [!WARNING]
> > case 3

image

image

Reproduction

https://stackblitz.com/edit/vite-alzhrt?file=docs%2Fexample.md

Expected behavior

Render without errors.

System Info

N/A

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildRelated to the build systemcontribution welcomeThe team would welcome a contribution from the community for this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions