mirror of
https://github.com/emojisum/emojisum.git
synced 2025-07-16 13:50:27 +00:00
emoji: fix merged unicode
for several of the emoji "words", they are a union of unicode points. Like flags are the two letters together. Female Detective is a number of connected symbols. This representation needs to be alltogether. With this update the unicode points are joined, and require spliting on the "U+". To help with this and be useful as a library there is a function `emoji.CodepointToUnicode(string) string` to do this now. Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
1d0526c5b6
commit
cc9cb5d099
6 changed files with 271 additions and 227 deletions
|
@ -51,7 +51,7 @@ func main() {
|
|||
}
|
||||
|
||||
func codepointLinkMarkdown(word string) string {
|
||||
return fmt.Sprintf(`[%s](%s)`, word, emoji.UnicodeLink(word))
|
||||
return fmt.Sprintf(`[%s](%s)`, word, emoji.UnicodeLinkURL(word))
|
||||
}
|
||||
|
||||
var (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue