llm browser fixes

This commit is contained in:
developer committed 2026-10-19 15:39:46 +00:00
1 parent a4dbb75195
commit f8526bfb4e
8 files changed
+33 -15

No files matched your search

+5
View File
@@ -62,6 +62,11 @@ func TestHTMLToMarkdown(t *testing.T) {
html: `<body><p><img src="/img/logo.png" alt="Logo"> and <img src="/img/x.png"></p></body>`,
want: "![Logo](https://page.test/img/logo.png) and ![x.png](https://page.test/img/x.png)",
},
{
name: "anchors at block position keep their href",
html: `<body><nav><a href="/policy">Policy</a></nav><ul><li><a href="/docs">Docs</a></li></ul></body>`,
want: "[Policy](https://page.test/policy)\n\n- [Docs](https://page.test/docs)",
},
{
name: "consecutive blocks collapse to one blank line",
html: `<body><div><p>a</p></div><div><p>b</p></div></body>`,