Fixed code blocks rendering as html
This commit is contained in:
parent
04a3fb1582
commit
9f9ab5d7ff
2 changed files with 3 additions and 3 deletions
4
index.js
4
index.js
|
@ -29,8 +29,8 @@ if (options.enable !== false) {
|
|||
hexo.extend.filter.register('after_post_render', data => {
|
||||
if (!options.inject && data['no-emoji']) { return data }
|
||||
|
||||
const $ = cheerio.load(data.content, {decodeEntities: false})
|
||||
const excerpt = cheerio.load(data.excerpt, {decodeEntities: false})
|
||||
const $ = cheerio.load(data.content)
|
||||
const excerpt = cheerio.load(data.excerpt)
|
||||
|
||||
if (options.inject) {
|
||||
$('body').append(`<script>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "hexo-filter-github-emojis",
|
||||
"version": "2.0.3",
|
||||
"version": "2.1.0",
|
||||
"description": "A Hexo plugin that adds emojis support, using Github Emojis API",
|
||||
"main": "index",
|
||||
"repository": "crimx/hexo-filter-github-emojis",
|
||||
|
|
Loading…
Add table
Reference in a new issue