summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar grunfink2025-03-25 08:45:24 +0000
committerGravatar grunfink2025-03-25 08:45:24 +0000
commit741ea91e5d05e38042a5624e39ef0f090f438156 (patch)
tree673bd77fbc8de36e7ccf908d9838652a385fc652
parentIn replace_shortnames(), avoid repeated emojis. (diff)
parentAdded tittle text and class to custom emojis (diff)
downloadpenes-snac2-741ea91e5d05e38042a5624e39ef0f090f438156.tar.gz
penes-snac2-741ea91e5d05e38042a5624e39ef0f090f438156.tar.xz
penes-snac2-741ea91e5d05e38042a5624e39ef0f090f438156.zip
Merge pull request 'Added tittle text and class to custom emojis (issue #330)' (#333) from dandelions/snac2:issue_330 into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/333
-rw-r--r--html.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/html.c b/html.c
index abb8562..d549f75 100644
--- a/html.c
+++ b/html.c
@@ -100,6 +100,8 @@ xs_str *replace_shortnames(xs_str *s, const xs_list *tag, int ems, const char *p
100 xs_html_attr("loading", "lazy"), 100 xs_html_attr("loading", "lazy"),
101 xs_html_attr("src", url), 101 xs_html_attr("src", url),
102 xs_html_attr("alt", n), 102 xs_html_attr("alt", n),
103 xs_html_attr("title", n),
104 xs_html_attr("class", "snac-emoji"),
103 xs_html_attr("style", style)); 105 xs_html_attr("style", style));
104 106
105 xs *s1 = xs_html_render(img); 107 xs *s1 = xs_html_render(img);