mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-20 10:33:41 -05:00
hicli/send: fix image html to markdown conversion for editing
This commit is contained in:
parent
c4d6e487da
commit
4742ca3116
1 changed files with 2 additions and 2 deletions
|
@ -53,9 +53,9 @@ func init() {
|
||||||
}
|
}
|
||||||
htmlToMarkdownForInput.ImageConverter = func(src, alt, title, width, height string, isEmoji bool) string {
|
htmlToMarkdownForInput.ImageConverter = func(src, alt, title, width, height string, isEmoji bool) string {
|
||||||
if isEmoji {
|
if isEmoji {
|
||||||
return fmt.Sprintf(``, alt, src, title)
|
return fmt.Sprintf(``, alt, src, "Emoji: "+title)
|
||||||
} else if title != "" {
|
} else if title != "" {
|
||||||
return fmt.Sprintf(``, alt, src, title)
|
return fmt.Sprintf(``, alt, src, title)
|
||||||
} else {
|
} else {
|
||||||
return fmt.Sprintf(``, alt, src)
|
return fmt.Sprintf(``, alt, src)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue