Open LYK-love opened 4 months ago
@LYK-love Could you share which math engine are you using? It should be in the something like this under _config.next.yml
:
math:
every_page: false
mathjax:
enable: true
tags: none
katex:
enable: false
copy_tex: false
Also please share your markdown
key in _config.yml
, like this:
markdown:
render:
breaks: false
plugins:
@LYK-love Could you share which math engine are you using? It should be in the something like this under
_config.next.yml
:math: every_page: false mathjax: enable: true tags: none katex: enable: false copy_tex: false
Also please share your
markdown
key in_config.yml
, like this:markdown: render: breaks: false plugins:
Sure, my math renderer is hexo-renderer-pandoc
and I use mathjax
.
math:
# Default (false) will load mathjax / katex script on demand.
# That is it only render those page which has `mathjax: true` in front-matter.
# If you set it to true, it will load mathjax / katex script EVERY PAGE.
every_page: false
mathjax:
enable: true
# Available values: none | ams | all
tags: ams
katex:
enable: false
# See: https://github.com/KaTeX/KaTeX/tree/master/contrib/copy-tex
copy_tex: false
$ npm list
hexo-site@0.0.0 /Users/lyk/Documents/LYK-love.github.io
├── hexo-generator-archive@2.0.0
├── hexo-generator-category@2.0.0
├── hexo-generator-index@3.0.0
├── hexo-generator-searchdb@1.4.1
├── hexo-generator-tag@2.0.0
├── hexo-renderer-ejs@2.0.0
├── hexo-renderer-pandoc@0.4.0
├── hexo-renderer-stylus@3.0.1
├── hexo-server@3.0.0
├── hexo-theme-landscape@1.0.0
└── hexo@7.3.0
I don't have markdown
key in _config.yml
. I think it's for hexo-renderer-markdown-it
, while I use hexo-renderer-pandoc
instead.
Issue Checklist
Expected behavior
For markdown codes like
It is expected to render two LaTex equation blokcks,
NOTE: This image is from my markdown editor Typora, which renders perfectly, instead of from a deployed site with Hexo Next.
Actual behavior
However, in the deployed site (either locally or on the Internet) I have these two additional
$$
s around my blocks sometimes. This means that my render engine,hexo-renderer-pandoc
, may work incorrectly?Steps to reproduce the behavior
Node.js and NPM Information
Package dependencies Information
Hexo Configuration
NexT Configuration
Other Information
No response