diff --git a/index.js b/index.js index 25291620..4bcad71a 100644 --- a/index.js +++ b/index.js @@ -65,8 +65,24 @@ module.exports = function(hexo, vendors) { file: 'dist/fonts' }; vendors.mathjax_font = { + name: '@mathjax/mathjax-newcm-font', + file: 'chtml' + }; + vendors.mathjax_tex_extensions = { + name: 'mathjax', + file: 'input/tex/extensions' + }; + vendors.mathjax_mml = { + name: 'mathjax', + file: 'input/mml' + }; + vendors.mathjax_a11y = { + name: 'mathjax', + file: 'a11y' + }; + vendors.mathjax_sre = { name: 'mathjax', - file: 'es5/output/chtml/fonts' + file: 'sre' }; for (const value of Object.values(vendors)) { const { data, error } = readFile(hexo.plugin_dir, value); diff --git a/package.json b/package.json index aa8f9edc..f230c1cb 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "@creativecommons/vocabulary": "2020.11.3", "@fancyapps/ui": "5.0.31", "@fortawesome/fontawesome-free": "7.0.0", + "@mathjax/mathjax-newcm-font": "4.1.3", "@next-theme/pjax": "0.6.0", "algoliasearch": "5.36.0", "animate.css": "3.1.1", @@ -26,7 +27,7 @@ "hexo-generator-searchdb": "1.5.0", "katex": "0.16.9", "lozad": "1.16.0", - "mathjax": "3.2.2", + "mathjax": "4.1.3", "medium-zoom": "1.1.0", "mermaid": "11.10.1", "pace-js": "1.2.4",