markdown
markdown copied to clipboard
Hard line breaks should not be applied for html code
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