emojis

package
v1.0.1-0...-65d85cd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 12 Imported by: 0

README

表情包

是的,退后,我要开始装逼(斗图)了!

几个原因

  1. 发现微信的表情包在复制的时候会转换成对应的文本描述(比如:[旺柴]
  2. 这个写法与 Markdown 标准的参考链接(Reference Link)写法完全一样
  3. 然后 Freya 在评论中提到了狗头🐶的使用

感觉巧合太多,要不我试一试简单的表情包支持?

实现

  1. 完全标准的 Markdown 语法,形如:[旺柴][皱眉]
  2. 就算不解析成图片,也能见名知义

参考

微信表情图片来源:https://github.com/airinghost/wechat-emoji

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Emojis

type Emojis struct{}

func New

func New() *Emojis

func (*Emojis) Extend

func (e *Emojis) Extend(md goldmark.Markdown)

func (*Emojis) Parse

func (e *Emojis) Parse(parent ast.Node, block text.Reader, pc parser.Context) ast.Node

func (*Emojis) TransformHtml

func (e *Emojis) TransformHtml(doc *goquery.Document) error

func (*Emojis) Trigger

func (e *Emojis) Trigger() []byte

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL