Skip to content

Markdown in raw HTML stops working after first raw HTML tag #368

@fpw

Description

@fpw

Hello,

I'm using Markdown and the "extra" extension to support Markdown in raw HTML div elements with the attribute markdown='1' as explained on the example page: https://pythonhosted.org/Markdown/extensions/extra.html

However, as soon as a raw HTML tag without the "markdown" attribute occurs inside the elment, Markdown will not be processed anymore after the end of that element. If you put any Markdown code after the "Raw html blocks may also be nested." text of the example page, it will not be processed even though it is still in the "markdown='1'" div.

Short example with 3 Markdown uses where the second one is not processed:

<div markdown="1">

Markdown is *active* here.

<div name="RawHtml">
Raw html blocks may also be nested.
</div>

Markdown is *not* active anymore here.

</div>

Markdown is *active again* here.

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