From 4742ca311618797ed61be72649be7aa0c64496b9 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sat, 2 Nov 2024 14:03:39 +0200 Subject: [PATCH] hicli/send: fix image html to markdown conversion for editing --- pkg/hicli/send.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/hicli/send.go b/pkg/hicli/send.go index 07fcef9..981d7cc 100644 --- a/pkg/hicli/send.go +++ b/pkg/hicli/send.go @@ -53,9 +53,9 @@ func init() { } htmlToMarkdownForInput.ImageConverter = func(src, alt, title, width, height string, isEmoji bool) string { if isEmoji { - return fmt.Sprintf(`![%s](%s "Emoji: %q")`, alt, src, title) + return fmt.Sprintf(`![%s](%s %q)`, alt, src, "Emoji: "+title) } else if title != "" { - return fmt.Sprintf(`![%s](%s "%s")`, alt, src, title) + return fmt.Sprintf(`![%s](%s %q)`, alt, src, title) } else { return fmt.Sprintf(`![%s](%s)`, alt, src) }