From f64c72bbfa3a622df9451ffb0812b6c5f62ab763 Mon Sep 17 00:00:00 2001 From: liuyib <1656081615@qq.com> Date: Sat, 20 Jul 2019 17:12:05 +0800 Subject: [PATCH] chore: Update config file --- _config.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/_config.yml b/_config.yml index 3fe19721..27e679ee 100644 --- a/_config.yml +++ b/_config.yml @@ -497,6 +497,38 @@ canvas_nest: # z-index property of the background zIndex: -1 +# --------------------------------------------------------------- +# Math and Chart config +# --------------------------------------------------------------- +math: + enable: true + + # Only the page which has `math: true` in Front-matter will render. + # If true, it will load mathjax / katex srcipt EVERY PAGE. + per_page: false + + engine: katex + + # See: https://github.com/mathjax/MathJax/ + # hexo-renderer-pandoc (or hexo-renderer-kramed) needed to full MathJax support. + mathjax: + cdn: https://cdn.jsdelivr.net/npm/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML + + # See: https://mhchem.github.io/MathJax-mhchem/ + mhchem: + enable: false + mhchem_js: https://cdn.jsdelivr.net/npm/mathjax-mhchem@3.3.2/mhchem.min.js + + # hexo-renderer-markdown-it-plus (or hexo-renderer-markdown-it with markdown-it-katex plugin) needed to full Katex support. + katex: + cdn: https://cdn.jsdelivr.net/npm/katex@0.10.2/dist/katex.min.css + + copy_tex: + # See: https://github.com/KaTeX/KaTeX/tree/master/contrib/copy-tex + enable: true + copy_tex_js: https://cdn.jsdelivr.net/npm/katex@0.10.2/dist/contrib/copy-tex.min.js + copy_tex_css: https://cdn.jsdelivr.net/npm/katex@0.10.2/dist/contrib/copy-tex.css + # --------------------------------------------------------------- # Other config # ---------------------------------------------------------------