llm browser fixes
This commit is contained in:
1 parent
a4dbb75195
commit
f8526bfb4e
8 files changed
+33
-15
No files matched your search
@@ -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: " and ",
|
||||
},
|
||||
{
|
||||
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>`,
|
||||
|
||||
Reference in new issue
Block a user