Skip to content

Hard line breaks should not be applied for html code #328

@chrishrb

Description

@chrishrb

I don‘t know if this is an issue or a feature request but in my opinion if the extension HardLineBreak is enabled, line breaks should not be added for html input. Instead it should only be applied for the markdown part.

Example:

<br />
<div align="center">
  <a href="#">
    <img src=".github/docs/logo-1.png" alt="Logo" height="120">
  </a>
</div>

## :question: About
Hello

Expected:

<p><br>
</p><div align="center">
  <a href="#">
    <img src=".github/docs/logo-1.png" alt="Logo" height="120">
  </a><p></p>
</div><p></p>

<h2>❓ About</h2>
<br>
Hello

Actual output if HardLineBreak is enabled:

<p><br><br>
</p><div align="center"><br>
  <a href="#"><br>
    <img src=".github/docs/logo-1.png" alt="Logo" height="120"><br>
  </a><p></p>
</div><p></p>

<h2>❓ About</h2>
<br>
Hello

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