@@ -829,15 +829,27 @@ if `specific`: true,you should add `math: true` into [Front-matter](https://he
829829
830830Because the default engine of hexo doesn't support math typesetting, it should be changed by other better engine.
831831
832- Uninstall the former engine :
833-
834- ` npm uninstall hexo-renderer-marked --save`
835-
836- Then change your engine, such as :
837-
838- mathjax : ` npm install hexo-renderer-pandoc --save ` **also need to [install Pandoc](https://github.com/jgm/pandoc/blob/master/INSTALL.md)**
832+ :::tip mathjax
833+ ` ` ` bash
834+ npm uninstall hexo-renderer-marked --save
835+ npm install hexo-renderer-pandoc --save
836+ ` ` `
837+ **Also need to [install Pandoc](https://github.com/jgm/pandoc/blob/master/INSTALL.md)**
838+ :: :
839839
840- katex : ` npm install @upupming/hexo-renderer-markdown-it-plus --save`
840+ :::tip katex
841+ ` ` ` bash
842+ npm uninstall hexo-renderer-marked --save
843+ npm install hexo-renderer-markdown-it --save
844+ npm install @traptitech/markdown-it-katex --save
845+ ` ` `
846+ Then append to **blog config** :
847+ ` ` ` yaml
848+ markdown:
849+ plugins:
850+ - "@traptitech/markdown-it-katex"
851+ ` ` `
852+ :: :
841853
842854**3. After installing, run `hexo clean`**
843855
850862` ` `
851863
852864:::warning
853-
854- You can't install more than one renderer, and can't install plugins such as `hexo-math` or `hexo-katex`.
855-
856- If your typesetting can't display correctly, you can check the below steps.
857-
858- The custom page doesn't load math by default, you need to specify `math : true` into [Front-matter](https://hexo.io/docs/front-matter) to ues it.
859-
860- :: :
861-
862-
863- :::tip
864-
865- Different formula engines have different advantages and disadvantages.
866-
867- **MathJax**
868-
869- Advantages:
870-
871- - full support for LaTeX syntax.
872- - right-click formula has extended function.
873-
874- Shortcomings :
875-
876- - need to load JS, pages will be slow to load, and there will be rendering changes.
877- - the kramed renderer does not support the escape character `\` of inline formulas.
878-
879- **Katex**
880-
881- Advantages :
882-
883- - No JS will not affect page loading.
884- - the renderer works well (relative to kramed's inline formula for MathJax).
885- Shortcomings.
886- - A small part of LaTeX do not support it.
887-
865+ - You can't install more than one renderer, and can't install plugins such as `hexo-math` or `hexo-katex`.
866+ - If your typesetting can't display correctly, you can check the below steps.
867+ - The custom page doesn't load math by default, you need to specify `math : true` into [Front-matter](https://hexo.io/docs/front-matter) to ues it.
888868:: :
889869
890870<InArticleAdsense :data-ad-client=$themeConfig.ads.client :data-ad-slot=$themeConfig.ads.inSlot is-new-ads-code="yes"></InArticleAdsense>
0 commit comments