Skip to content

Nested (and indented) raw HTML with blank lines breaks #452

@waylan

Description

@waylan

Simple example:

<div>
    <div>
        Div with a blank line

        in the middle.
    </div>
    <div>
        This gets treated as a code block
    </div>
</div>

Results:

<div>
    <div>
        Div with a blank line

        in the middle.
    </div>

<pre><code>&lt;div&gt;
    This gets treated as a code block
&lt;/div&gt;
</code></pre>
</div>

Removing the blank line in the first child div resolves the problem. But this should work without altering the HTML. This bug was first reported to MkDocs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    someday-maybeApproved low priority request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions