From 33e81dfb3702d40695f9c6270e29bedd75e9f114 Mon Sep 17 00:00:00 2001 From: Windeling <142467582+windeling@users.noreply.github.com> Date: Thu, 27 Feb 2025 22:16:07 +0800 Subject: [PATCH 1/2] Update index.js Signed-off-by: Windeling <142467582+windeling@users.noreply.github.com> --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index dec6957..74036b2 100755 --- a/index.js +++ b/index.js @@ -4,13 +4,13 @@ hexo.config.math = Object.assign({ katex: { - css: 'https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.css', + css: 'https://fastly.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.css', options: { throwOnError: false } }, mathjax: { - css: 'https://cdn.jsdelivr.net/npm/hexo-math@4.0.0/dist/style.css', + css: 'https://fastly.jsdelivr.net/npm/hexo-math@4.0.0/dist/style.css', options: { // https://docs.mathjax.org/en/latest/web/typeset.html#conversion-options conversion: { From 04f8cf388e75b50475dd885c00107a7be90bce46 Mon Sep 17 00:00:00 2001 From: Windeling <142467582+windeling@users.noreply.github.com> Date: Fri, 28 Feb 2025 10:26:07 +0800 Subject: [PATCH 2/2] Update index.js change the polluted cdn Signed-off-by: Windeling <142467582+windeling@users.noreply.github.com> --- test/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/index.js b/test/index.js index ec3bd71..b1792fa 100755 --- a/test/index.js +++ b/test/index.js @@ -12,14 +12,14 @@ describe('hexo-math', () => { math: { katex: { enable: true, - css: 'https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.css', + css: 'https://fastly.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.css', options: { throwOnError: false } }, mathjax: { enable: true, - css: 'https://cdn.jsdelivr.net/gh/hexojs/hexo-math/master/dist/style.css', + css: 'https://fastly.jsdelivr.net/gh/hexojs/hexo-math/master/dist/style.css', options: { conversion: { display: false