Skip to content

Blocks inside alert body is parsed as blocks outside the body #907

@rhysd

Description

@rhysd

Repro

Save this content as foo.md

> [!Note]
> - Foo

Then run the following command in this repository

cargo run -- -G < foo.md

Expected behavior

The list is parsed as the content inside the alert body:

<blockquote class="markdown-alert-note">
<ul>
<li>Foo</li>
</ul>
</blockquote>

Actual behavior

The list is parsed as the content outside the alert body:

<blockquote class="markdown-alert-note">
</blockquote>
<ul>
<li>Foo</li>
</ul>

Environment

  • Rust: 1.79
  • pulldown-cmark: 36d576e

Additional info

GitHub renders - Foo as a content inside the alert block as follows:

Note

  • Foo

I'll make a pull request to fix this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions