ソースを参照

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
grunfink 1 年間 前
コミット
741ea91e5d
1 ファイル変更2 行追加0 行削除
  1. 2 0
      html.c

+ 2 - 0
html.c

@@ -100,6 +100,8 @@ xs_str *replace_shortnames(xs_str *s, const xs_list *tag, int ems, const char *p
                                 xs_html_attr("loading", "lazy"),
                                 xs_html_attr("loading", "lazy"),
                                 xs_html_attr("src", url),
                                 xs_html_attr("src", url),
                                 xs_html_attr("alt", n),
                                 xs_html_attr("alt", n),
+                                xs_html_attr("title", n),
+                                xs_html_attr("class", "snac-emoji"),
                                 xs_html_attr("style", style));
                                 xs_html_attr("style", style));
 
 
                             xs *s1 = xs_html_render(img);
                             xs *s1 = xs_html_render(img);