aboutsummaryrefslogtreecommitdiff
path: root/html_backend.go
diff options
context:
space:
mode:
Diffstat (limited to 'html_backend.go')
-rw-r--r--html_backend.go41
1 files changed, 0 insertions, 41 deletions
diff --git a/html_backend.go b/html_backend.go
index b404ba7..14137e5 100644
--- a/html_backend.go
+++ b/html_backend.go
@@ -1063,47 +1063,6 @@ func htmlWriteHeader(doc *Document, out io.Writer) {
fmt.Fprint(out, "\n</div>")
}
-func htmlWriteInlineImage(el *element, out io.Writer) {
- var (
- classes = strings.TrimSpace(`image ` + el.htmlClasses())
-
- link string
- withLink bool
- )
-
- fmt.Fprintf(out, `<span class=%q>`, classes)
- link, withLink = el.Attrs[attrNameLink]
- if withLink {
- fmt.Fprintf(out, `<a class=%q href=%q>`, attrValueImage, link)
- }
-
- var (
- src = el.Attrs[attrNameSrc]
- alt = el.Attrs[attrNameAlt]
-
- width string
- height string
- ok bool
- )
-
- width, ok = el.Attrs[attrNameWidth]
- if ok {
- width = fmt.Sprintf(` width="%s"`, width)
- }
- height, ok = el.Attrs[attrNameHeight]
- if ok {
- height = fmt.Sprintf(` height="%s"`, height)
- }
-
- fmt.Fprintf(out, `<img src=%q alt=%q%s%s>`, src, alt, width, height)
-
- if withLink {
- fmt.Fprint(out, `</a>`)
- }
-
- fmt.Fprint(out, `</span>`)
-}
-
func htmlWriteInlinePass(doc *Document, el *element, out io.Writer) {
var text = htmlSubs(doc, el)