Skip to content

How to config it to make it work? #26

@ChenZhongPu

Description

@ChenZhongPu

After installing it, I just add the followings to _config.xml

math:
  engine: 'mathjax' # or 'katex'
  mathjax:
    src: custom_mathjax_source
    config:
      # MathJax config
  katex:
    css: custom_css_source
    js: custom_js_source # not used
    config:
      # KaTeX config

When I run it:

 ~/Project/gitwork/blogGitPage  hexo s
INFO  [hexo-math] Using engine 'mathjax'
INFO  Hexo is running at http://0.0.0.0:4000/. Press Ctrl+C to stop.

However, the Simple inline $a = b + c$. is not displayed in math format.

Do I config it correctly?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions