From c016b686293e1b8d8a01dd7608c7ddec249a97b5 Mon Sep 17 00:00:00 2001 From: default Date: Sat, 22 Jun 2024 23:58:20 +0200 Subject: [PATCH] Metadata having gemini urls are now clickable. --- html.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/html.c b/html.c index b4daf44..b9946e6 100644 --- a/html.c +++ b/html.c @@ -867,6 +867,13 @@ static xs_html *html_user_body(snac *user, int read_only) xs_html_text(v)); } } + else + if (xs_startswith(v, "gemini:/")) { + value = xs_html_tag("a", + xs_html_attr("rel", "me"), + xs_html_attr("href", v), + xs_html_text(v)); + } else value = xs_html_text(v);