This commit is contained in:
afjcjsbx 2026-03-15 22:30:02 +01:00
parent d5c2bc538a
commit de68688c75
2 changed files with 0 additions and 3 deletions

View file

@ -938,7 +938,6 @@ func (t *WebFetchTool) Execute(ctx context.Context, args map[string]any) *ToolRe
case mediaType == "text/html" || looksLikeHTML(bodyStr): case mediaType == "text/html" || looksLikeHTML(bodyStr):
switch strings.ToLower(t.format) { switch strings.ToLower(t.format) {
case "markdown": case "markdown":
var err error var err error
text, err = utils.HtmlToMarkdown(bodyStr) text, err = utils.HtmlToMarkdown(bodyStr)

View file

@ -166,7 +166,6 @@ func (c *converter) walk(n *html.Node) {
// Opening Tags // Opening Tags
switch n.Data { switch n.Data {
// Buffer emphasis content so we can TrimSpace the inner text, // Buffer emphasis content so we can TrimSpace the inner text,
// avoiding the regex-across-boundaries bug. // avoiding the regex-across-boundaries bug.
case "b", "strong": case "b", "strong":
@ -291,7 +290,6 @@ func (c *converter) walk(n *html.Node) {
// Closing Tags // Closing Tags
switch n.Data { switch n.Data {
// Pop buffer, trim, wrap with the correct marker. // Pop buffer, trim, wrap with the correct marker.
case "b", "strong", "i", "em", "del", "s": case "b", "strong", "i", "em", "del", "s":
if len(c.emphStack) == 0 { if len(c.emphStack) == 0 {