本文最后更新于:2023年12月5日 下午

本文介绍在hexo 中添加 emoji标签的方法。

安装新的渲染器

1
2
npm un hexo-renderer-marked --save
npm i hexo-renderer-markdown-it --save

修改 hexo 配置文件

  • 修改 _config.yml 文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Markdown-it config
## Docs: https://github.com/celsomiranda/hexo-renderer-markdown-it/wiki
markdown:
render:
html: true
xhtmlOut: false
breaks: true
linkify: true
typographer: true
quotes: '“”‘’'
plugins:
- markdown-it-abbr
- markdown-it-footnote
- markdown-it-ins
- markdown-it-sub
- markdown-it-sup
- markdown-it-emoji # add emoji

测试

1
:smile: 微笑表情

😄 微笑表情

参考资料



文章链接:
https://www.zywvvd.com/notes/hexo/website/19-hexo-emoji/hexo-emoji/


“觉得不错的话,给点打赏吧 ୧(๑•̀⌄•́๑)૭”

微信二维码

微信支付

支付宝二维码

支付宝支付

Hexo -19- 添加emoji表情
https://www.zywvvd.com/notes/hexo/website/19-hexo-emoji/hexo-emoji/
作者
Yiwei Zhang
发布于
2021年8月23日
许可协议