(n *html.Node, urls *[]string)
| 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 | |
| 141 | type 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"` |
no test coverage detected