commit e58eb06
default
·
2023-01-13 06:02:04 +0000 UTC
parent 964b11e
Minor URL formatting tweaks.
2 files changed,
+3,
-2
+1,
-1
1@@ -21,6 +21,6 @@ It also allows preformatted text using three backquotes in a single line:
2
3 ```
4
5-URLs like https://en.wikipedia.org/wiki/Main_Page are made clickable.
6+URLs like https://en.wikipedia.org/wiki/Main_Page are made clickable, https://codeberg.org/grunfink/snac2.
7
8 Some emojis: X-D <3 :beer: :shrug: :shrug2:
M
format.c
+2,
-1
1@@ -71,7 +71,8 @@ static d_char *format_line(const char *line)
2 }
3 else
4 if (xs_startswith(v, "http")) {
5- xs *s1 = xs_fmt("<a href=\"%s\" target=\"_blank\">%s</a>", v, v);
6+ xs *v2 = xs_strip_chars_i(xs_dup(v), ".");
7+ xs *s1 = xs_fmt("<a href=\"%s\" target=\"_blank\">%s</a>", v2, v);
8 s = xs_str_cat(s, s1);
9 }
10 else