Open GoBigorGoHome opened 10 months ago
5.1.1
use League\HTMLToMarkdown\HtmlConverter; $converter = new HtmlConverter(); $md = $converter->convert('<pre> line 1 </pre>') var_export($md);
prints
'``` line 1 ```'
there is an empty line above line 1. But the HTML spec says
line 1
In the HTML syntax, a leading newline character immediately following the pre element start tag is stripped.
pre
so the expected markdown is
See also https://stackoverflow.com/q/23969607
See description.
Version(s) affected
5.1.1
Description
prints
there is an empty line above
line 1
. But the HTML spec saysso the expected markdown is
line 1
See also https://stackoverflow.com/q/23969607
How to reproduce
See description.