Upstream thephpleague/html-to-markdown state of the touched files before 7af7830eab

This commit is contained in:
upstream committed 2026-10-02 16:19:40 +02:00
1 parent 806387f3f6
commit 6b7a074e8d
2 files changed
+289 -8

No files matched your search

+6 -8
View File
@@ -293,15 +293,13 @@ EOT;
$this->assertHtmlGivesMarkdown('<pre> one line with spaces </pre>', "```\n one line with spaces \n```");
$this->assertHtmlGivesMarkdown('<pre></pre>', "```\n```");
$this->assertHtmlGivesMarkdown('<pre></pre><pre></pre>', "```\n```\n\n```\n```");
$this->assertHtmlGivesMarkdown("<pre>\n</pre>", "```\n```");
$this->assertHtmlGivesMarkdown("<pre>\n</pre>", "```\n\n```");
$this->assertHtmlGivesMarkdown("<pre>foo\n</pre>", "```\nfoo\n```");
$this->assertHtmlGivesMarkdown("<pre>\nfoo</pre>", "```\nfoo\n```");
$this->assertHtmlGivesMarkdown("<pre>\nfoo\n</pre>", "```\nfoo\n```");
$this->assertHtmlGivesMarkdown("<pre>\r\nfoo</pre>", "```\nfoo\n```");
$this->assertHtmlGivesMarkdown("<pre>\n\nfoo</pre>", "```\n\nfoo\n```");
$this->assertHtmlGivesMarkdown("<pre>\n\n</pre>", "```\n\n```");
$this->assertHtmlGivesMarkdown("<pre>\n\n\n</pre>", "```\n\n\n```");
$this->assertHtmlGivesMarkdown("<pre>\n</pre><pre>\n</pre>", "```\n```\n\n```\n```");
$this->assertHtmlGivesMarkdown("<pre>\nfoo</pre>", "```\n\nfoo\n```");
$this->assertHtmlGivesMarkdown("<pre>\nfoo\n</pre>", "```\n\nfoo\n```");
$this->assertHtmlGivesMarkdown("<pre>\n\n</pre>", "```\n\n\n```");
$this->assertHtmlGivesMarkdown("<pre>\n\n\n</pre>", "```\n\n\n\n```");
$this->assertHtmlGivesMarkdown("<pre>\n</pre><pre>\n</pre>", "```\n\n```\n\n```\n\n```");
$this->assertHtmlGivesMarkdown("<pre>one\ntwo\r\nthree</pre>\n<p>line</p>", "```\none\ntwo\nthree\n```\n\nline");
$this->assertHtmlGivesMarkdown("<pre class='some-class'>test with attributes</pre>", "```\ntest with attributes\n```");
}