Skip to content
This repository was archived by the owner on Jan 27, 2021. It is now read-only.

Commit e62d032

Browse files
committed
revert(injector): revert to use regExp to modify html
because cheerio now cannot operate fragment well (cheeriojs/cheerio#1031) re #91
1 parent e8f736c commit e62d032

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,10 @@ if (config.enable) {
180180
/*
181181
* Injector borrowed form here:
182182
* https://github.com/Troy-Yang/hexo-lazyload-image/blob/master/lib/addscripts.js
183+
* TODO:
184+
* use cheerio to modify DOM
185+
* failed in 2018.3.18
186+
* https://github.com/cheeriojs/cheerio/issues/1031
183187
*/
184188
hexo.extend.filter.register('after_render:html', (htmlContent) => {
185189

0 commit comments

Comments
 (0)