-
-
Notifications
You must be signed in to change notification settings - Fork 212
Open
Description
Version(s) affected
5.1.1
Description
The parser is not adding a newline between the tag and the subsequent tag, causing the Markdown to be rendered incorrectly.
The following HTML is not being parsed as expected:
<img src="https://placehold.co/600x400" loading="lazy" id="" width="auto" height="auto" alt="" />
<h3 id="">A new header</h3>
Current output
### A new header
Expected output

### A new header
How to reproduce
$html = <<<HTML
<img src="https://placehold.co/600x400" loading="lazy" id="" width="auto" height="auto" alt="" />
<h3 id="">A new header</h3>
HTML;
$converter = new HtmlConverter();
$markdown = $converter->convert($html);
echo $markdown;
bennykay and bochoven
Metadata
Metadata
Assignees
Labels
No labels