From c6cdb820eafb782d955c03911cf10e8e5a7c9c2a Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sat, 19 Oct 2024 17:13:45 +0300 Subject: [PATCH] hicli/html: convert plaintext matrix.to links to matrix: URIs --- pkg/hicli/html.go | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/pkg/hicli/html.go b/pkg/hicli/html.go index fb66ff0..fd23ec7 100644 --- a/pkg/hicli/html.go +++ b/pkg/hicli/html.go @@ -179,11 +179,18 @@ func writeURL(w *strings.Builder, addr []byte) { writeEscapedBytes(w, addr) return } - if parsedURL.Scheme == "" { - parsedURL.Scheme = "https" + w.WriteString(`') writeEscapedBytes(w, addr) w.WriteString("")