From d8d34287f19d2f3942fcea44cc563e5d1558bb0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=B6=9B?= Date: Sat, 10 Apr 2021 21:07:35 +0800 Subject: [PATCH] =?UTF-8?q?build:=E6=9B=B4=E6=94=B9MathJax=E4=BE=9D?= =?UTF-8?q?=E8=B5=96=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _config.yml | 19 +++++++------------ package.json | 2 +- 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/_config.yml b/_config.yml index cbbbc2b..ee519f1 100644 --- a/_config.yml +++ b/_config.yml @@ -168,18 +168,13 @@ toc: position: after symbol: '#' style: header-anchor -math: - katex: - css: 'https://cdn.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' - options: - conversion: - display: false - tex: - svg: +mathjax: + tags: none + single_dollars: true + cjk_width: 0.9 + normal_width: 0.6 + append_css: true + every_page: false plantuml: # Local or PlantUMLServer. render: "PlantUMLServer" diff --git a/package.json b/package.json index beb6adc..f01f66c 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "hexo": "^5.0.0", "hexo-admonition": "^1.1.2", "hexo-filter-fenced-code": "^1.0.2", + "hexo-filter-mathjax": "^0.6.3", "hexo-filter-plantuml": "^2.1.0", "hexo-filter-sub": "^1.0.0", "hexo-filter-sup": "^1.0.1", @@ -23,7 +24,6 @@ "hexo-generator-category": "^1.0.0", "hexo-generator-index": "^2.0.0", "hexo-generator-tag": "^1.0.0", - "hexo-math": "^4.0.0", "hexo-renderer-ejs": "^1.0.0", "hexo-renderer-less": "^2.0.2", "hexo-renderer-marked": "^4.0.0",