summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-11-29 13:43:33 +0100
committerdefault <nobody@localhost>2023-11-29 13:43:33 +0100
commit6a37dca67a3866f644074b2059c1f9e49009bf02 (patch)
treedcdc4429d93ecb9eb55db41fb28d6319bb69a9e8
parent5b270b903c155843966443e77ed5ed747388975e (diff)
Added a title to an image shortname.
-rw-r--r--html.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/html.c b/html.c
index 971af07..8a5d835 100644
--- a/html.c
+++ b/html.c
@@ -70,6 +70,7 @@ xs_str *replace_shortnames(xs_str *s, xs_list *tag)
xs_html *img = xs_html_sctag("img",
xs_html_attr("loading", "lazy"),
xs_html_attr("src", u),
+ xs_html_attr("title", n),
xs_html_attr("style", "height: 1em; vertical-align: middle;"));
xs *s1 = xs_html_render(img);