Hexo Math

screenshot of Hexo Math
hexo

A hexo plugin that uses MathJax to render math equations.

Overview

If you're looking to incorporate mathematical equations into your Hexo blog without the hassle of client-side javascript libraries, hexo-math is a fantastic solution. This plugin allows you to seamlessly embed KaTeX and MathJax for rendering equations server-side, meaning your readers will enjoy a faster, smoother experience without the need for additional browser dependencies. It's designed for ease of use within Hexo 5 and above, making it a solid choice for content creators who want to enhance their posts with mathematical notation.

With hexo-math, you can have full control over how equations are presented on a per-article basis, along with customizable stylesheets that can be easily adjusted to fit your site's aesthetic. Whether you're writing mathematical tutorials, academic articles, or simply want to include some equations, this plugin offers a streamlined approach to enrich your content.

Features

  • Server-Side Rendering: Equations are rendered on the server, eliminating the need for browser-side JavaScript libraries which can slow down page loads.
  • Flexible Configuration: Easily override global settings on a per-article basis using front-matter in JSON format to tailor the plugin’s behavior.
  • Style Customization: Default CSS styles are included, but you have the option to replace them with your own stylesheet for a personalized look.
  • KaTeX and MathJax Options: Supports both KaTeX and MathJax, allowing you to choose the rendering method that best suits your needs.
  • Configuration Priority: Unique options can be combined, giving you control over which settings take precedence to avoid conflicts.
  • Easy Installation: Designed for Hexo 5+, the installation process is straightforward, making it accessible even to those newer to Hexo.
  • Compatibility: Functions without any major incompatibilities with Hexo’s default Markdown renderer, offering a smooth integration with minimal effort.
hexo
Hexo

Hexo is a static site generator built with Node.js that enables developers to create fast and efficient websites using Markdown, EJS, and Stylus. It offers features such as server-side rendering, plugin support, and easy deployment to hosting services like GitHub Pages and Netlify.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.