bubkoo / hexo-toc

📖 Insert a markdown TOC before posts be rendered.
MIT License
127 stars 17 forks source link

let cheerio do not decode entities #15

Closed chawyehsu closed 7 years ago

chawyehsu commented 7 years ago

Critical this fix that non-latin characters (like Chinese) get HTML-encoded problem.

cf.:

  1. https://github.com/hexojs/hexo/issues/657
  2. https://github.com/cheeriojs/cheerio/issues/565
  3. https://github.com/cheeriojs/cheerio/issues/866
  4. http://cnodejs.org/topic/54bdd639514ea9146862ac37