next-theme / hexo-filter-mathjax

💯 Server side MathJax renderer plugin for Hexo.
https://www.npmjs.com/package/hexo-filter-mathjax
MIT License
105 stars 6 forks source link

fix a bug that css will be added repeatedly #19

Closed renzibei closed 4 years ago

renzibei commented 4 years ago

There is a bug that the inline css will be added repeatedly due to the similar behavior to "hexo-generator-feed".

The bug is show as below. duplicate_css

Solution: Add an unique token (html tag) to show that the inline css has been added.

stevenjoezhang commented 4 years ago

This bug will be fixed by Hexo in the next release (Hexo 5.0.0) ref: https://github.com/hexojs/hexo/pull/4073

stevenjoezhang commented 4 years ago

Hexo 5.0 released: https://www.npmjs.com/package/hexo/v/5.0.0