Closed ngmy closed 2 years ago
I use version 5.0.0.
Escaped <pre> and <code> tags in the code block will be removed.
<pre>
<code>
<?php require __DIR__ . '/vendor/autoload.php'; use League\HTMLToMarkdown\HtmlConverter; $html1 = <<<HTML <pre><code><b>hogehoge</b></code></pre> HTML; $html2 = <<<HTML <pre><code><pre><code>hogehoge</code></pre></code></pre> HTML; $converter = new HtmlConverter(); echo $converter->convert($html1); echo PHP_EOL; echo $converter->convert($html2); echo PHP_EOL;
hogehoge
$html1 is as expected, but $html2 is not, although I expected the following.
$html1
$html2
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I use version 5.0.0.
Escaped
<pre>
and<code>
tags in the code block will be removed.hogehoge
hogehoge
$html1
is as expected, but$html2
is not, although I expected the following.