all repos — honk @ 0116f718f85ad25457257e26b0d3862c6183b0f2

my fork of honk

alt text for hoot images
Ted Unangst tedu@tedunangst.com
Sat, 11 Feb 2023 19:46:29 -0500
commit

0116f718f85ad25457257e26b0d3862c6183b0f2

parent

7a38ba1025bef4ec2bac4b370814acc1533ad381

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M hoot.gohoot.go

@@ -57,7 +57,7 @@ alt := htfilter.GetAttr(node, "alt")

if htfilter.HasClass(node, "Emoji") && alt != "" { return alt } - return fmt.Sprintf(" <img src='%s'>", htfilter.GetAttr(node, "src")) + return fmt.Sprintf(" <img src='%s' alt='%s'>", htfilter.GetAttr(node, "src"), alt) } var buf strings.Builder