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.

Metadata

Metadata

Assignees

Labels

bugBug report.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions