Skip to main content

Math Formulas

The theme offers two ways to enable LaTeX math formula support. Both require the following setup first:

  • Remove Hexo's default markdown renderer hexo-renderer-marked and install hexo-renderer-pandoc. Remove any other markdown renderers as well!

    npm uninstall hexo-renderer-marked
    npm install hexo-renderer-pandoc
  • Install pandoc from pandoc.org.

Method 1: Built-in LaTeX renderer

Use the theme's built-in LaTeX renderer. Enable mathjax in the config:

mathjax: true # load the LaTeX math library

Use the third-party plugin hexo-filter-mathjax for server-side rendering. Set mathjax: false in the config.

For performance, Method 2 is recommended.