
hexo添加支持emoji
hexo添加支持emoji
很简单,换一个 markdown 引擎,然后再增加 emoji 插件即可。
1 | npm un hexo-renderer-marked --save |
然后编辑 _config.yml:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27markdown:
preset: 'default'
render:
html: true
xhtmlOut: false
langPrefix: 'language-'
breaks: true
linkify: true
typographer: true
quotes: '“”‘’'
enable_rules:
disable_rules:
plugins:
- markdown-it-footnote
- markdown-it-sup
- markdown-it-sub
- markdown-it-abbr
- markdown-it-emoji
anchors:
level: 2
collisionSuffix: ''
permalink: false
permalinkClass: 'header-anchor'
permalinkSide: 'left'
permalinkSymbol: '¶'
case: 0
separator: '-'
使用方法在Emoji 中找到你想要的表情,然后点击即可复制。
比如你想发一个笑脸 😄 直接输入笑脸对应的 emoji 编码就可以。
本文是原创文章,采用CC BY-NC-SA 4.0协议,完整转载请注明来自Tony's Blog