From c7bbbf62fa36778d9b09241cb2970a29e876132b Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 4 Aug 2026 18:01:57 +0000 Subject: [PATCH 1/4] Update dependency mathjax to v4 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index aa8f9edc..f47add98 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,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", From 53e99291d68ef682bde9e79a074e490678a78c17 Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Wed, 5 Aug 2026 09:45:01 +0800 Subject: [PATCH 2/4] Support MathJax 4 local assets --- index.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 25291620..a425cd45 100644 --- a/index.js +++ b/index.js @@ -65,8 +65,20 @@ 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_extensions = { + name: 'mathjax', + file: 'input/mml/extensions' + }; + 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); From d938037e639eac3990a02d322144824ece5a1dbd Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Wed, 5 Aug 2026 10:12:08 +0800 Subject: [PATCH 3/4] Complete MathJax 4 local assets --- index.js | 8 ++++++-- package.json | 18 +++++++++++++++--- 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index a425cd45..4bcad71a 100644 --- a/index.js +++ b/index.js @@ -72,9 +72,13 @@ module.exports = function(hexo, vendors) { name: 'mathjax', file: 'input/tex/extensions' }; - vendors.mathjax_mml_extensions = { + vendors.mathjax_mml = { name: 'mathjax', - file: 'input/mml/extensions' + file: 'input/mml' + }; + vendors.mathjax_a11y = { + name: 'mathjax', + file: 'a11y' }; vendors.mathjax_sre = { name: 'mathjax', diff --git a/package.json b/package.json index f47add98..5b302c3b 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,10 @@ "scripts": { "prepublishOnly": "npm i && node lib/generator.js" }, - "repository": "next-theme/plugins", + "repository": { + "type": "git", + "url": "git+https://github.com/next-theme/plugins.git" + }, "keywords": [ "hexo", "hexo generator", @@ -18,6 +21,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", @@ -40,8 +44,16 @@ }, "devDependencies": { "css": "3.0.0", - "hexo-theme-next": "next-theme/hexo-theme-next", + "hexo-theme-next": "github:next-theme/hexo-theme-next", "js-yaml": "4.1.1", "ssri": "13.0.0" - } + }, + "directories": { + "lib": "lib" + }, + "type": "commonjs", + "bugs": { + "url": "https://github.com/next-theme/plugins/issues" + }, + "homepage": "https://github.com/next-theme/plugins#readme" } From 23f388739ea896a80f0ea60e8d1125c92d807b9c Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Wed, 5 Aug 2026 10:12:36 +0800 Subject: [PATCH 4/4] Restore package metadata formatting --- package.json | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index 5b302c3b..f230c1cb 100644 --- a/package.json +++ b/package.json @@ -6,10 +6,7 @@ "scripts": { "prepublishOnly": "npm i && node lib/generator.js" }, - "repository": { - "type": "git", - "url": "git+https://github.com/next-theme/plugins.git" - }, + "repository": "next-theme/plugins", "keywords": [ "hexo", "hexo generator", @@ -44,16 +41,8 @@ }, "devDependencies": { "css": "3.0.0", - "hexo-theme-next": "github:next-theme/hexo-theme-next", + "hexo-theme-next": "next-theme/hexo-theme-next", "js-yaml": "4.1.1", "ssri": "13.0.0" - }, - "directories": { - "lib": "lib" - }, - "type": "commonjs", - "bugs": { - "url": "https://github.com/next-theme/plugins/issues" - }, - "homepage": "https://github.com/next-theme/plugins#readme" + } }