MCPcopy Create free account
hub / github.com/basecamp/hey-cli / findImages

Function findImages

internal/htmlutil/htmlutil.go:126–144  ·  view source on GitHub ↗
(n *html.Node, urls *[]string)

Source from the content-addressed store, hash-verified

124 case "li":
125 b.WriteString("\n • ")
126 walkChildren(b, n, depth)
127 return
128 case "ul", "ol":
129 b.WriteString("\n")
130 walkChildren(b, n, depth)
131 b.WriteString("\n")
132 return
133 case "hr":
134 b.WriteString("\n───\n")
135 return
136 }
137 }
138 walkChildren(b, n, depth)
139}
140
141type trixAttachment struct {
142 URL string `json:"url"`
143 Filename string `json:"filename"`
144 ContentType string `json:"contentType"`
145 Filesize *int64 `json:"filesize"`
146 SGID string `json:"sgid"`
147 Content string `json:"content"`

Callers 1

ExtractImageURLsFunction · 0.85

Calls 1

parseTrixAttachmentFunction · 0.85

Tested by

no test coverage detected