Skip to content

Bug related to Admontion and List Interaction  #1004

Description

@facelessuser

Source:

import markdown

md = """
- List

    !!! note "Admontion"

        - Paragraph

            Paragraph
"""

print(markdown.markdown(md, extensions=['admonition']))

Output:

<ul>
<li>
<p>List</p>
<div class="admonition note">
<p class="admonition-title">Admontion</p>
<ul>
<li>Paragraph</li>
</ul>
<pre><code>Paragraph
</code></pre>
</div>
</li>
</ul>

Somehow, things get out of sync. Second paragraph under admonition should not be transformed into code.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugBug report.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions