Skip to content

Nested one-liners broken with md_in_html #1074

Closed
@git1sal

Description

@git1sal

Version 3.3.3. I've found several anomalies in the behavior of nested markdown=1 blocks. Here's one that's probably diagnostic:

markdown.markdown('<div class="outer" markdown="block"><div class="inner" markdown="block">*foo*</div></div>', extensions=["extra"])

returns:

'<p><div class="inner" markdown="block"><div class="outer" markdown="block">*foo*</div></p>\n</div>'

The inner <div> is now outside.

Other weird things in this example are the addition of the <p> tags, which are unmatched, and a stray \n .

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug report.confirmedConfirmed bug report or approved feature request.extensionRelated to one or more of the included extensions.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions