MCPcopy Index your code
hub / github.com/TruthHun/BookStack / handleHr

Function handleHr

utils/html2md/html2markdown.go:270–276  ·  view source on GitHub ↗

[ok]handle tag

(doc *goquery.Document)

Source from the content-addressed store, hash-verified

268
269//[ok]handle tag <hr/>
270func handleHr(doc *goquery.Document) *goquery.Document {
271 doc.Find("hr").Each(func(i int, selection *goquery.Selection) {
272 selection.BeforeHtml("\n- - -\n")
273 selection.Remove()
274 })
275 return doc
276}
277
278//[ok]handle tag <img/>
279func handleImg(doc *goquery.Document) *goquery.Document {

Callers 1

ConvertFunction · 0.85

Calls 1

FindMethod · 0.45

Tested by

no test coverage detected