Skip to content

Non-first blank lines in HTML blocks enable markdown mode #135

@sorbits

Description

@sorbits

I understand that an initial blank line in an HTML block enables markdown mode, but I would not expect later lines to do this, for example with this input:

# Hello world

<div>
    <p>First paragraph</p>

    <p>Second paragraph</p>
</div>

I get the following output:

<h1 id="helloworld">Hello world</h1>

<div>
    <p>First paragraph</p>

<pre><code>&lt;p&gt;Second paragraph&lt;/p&gt;
</code></pre>

</div>

If the rule is that any blank line in HTML blocks enable markdown mode (for the remaining content), it means that we cannot visually group elements, which would be a loss for readability.

Using v6.3.2 installed via homebrew.

Using --compatibility does not change the above behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions