Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ikeq/hexo-filter-mathjax-ssr
Pre-render MathJax
https://github.com/ikeq/hexo-filter-mathjax-ssr
hexo hexo-filter mathjax mathjax-node prerender
Last synced: 6 days ago
JSON representation
Pre-render MathJax
- Host: GitHub
- URL: https://github.com/ikeq/hexo-filter-mathjax-ssr
- Owner: ikeq
- License: mit
- Created: 2019-06-24T08:26:31.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-23T09:22:34.000Z (almost 5 years ago)
- Last Synced: 2024-12-14T18:22:04.582Z (20 days ago)
- Topics: hexo, hexo-filter, mathjax, mathjax-node, prerender
- Language: JavaScript
- Size: 7.81 KB
- Stars: 12
- Watchers: 1
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hexo-filter-mathjax-ssr
[![npm](https://img.shields.io/npm/v/hexo-filter-mathjax-ssr.svg)](https://www.npmjs.com/package/hexo-filter-mathjax-ssr)
Pre-render MathJax into svg using [mathjax-node].
## Preview
- [Examples](https://blog.oniuo.com/post/math-jax-ssr-example)
## Installation
``` bash
$ npm install hexo-filter-mathjax-ssr --save
```## Options
You can configure this plugin in `_config.yml`.
``` yaml
mathjax:
disable: false
inlineQuote: $ # or `[$, $]`
blockQuote: $$ # or `[$$, $$]`
MathJax:
SVG:
font: Gyre-Pagella
```- **disable** - Disable plugin, default `false`.
- **inlineQuote** - Similar to `MathJax.inlineMath`, but only support one pair, default `$`.
- **blockQuote** - Similar to `MathJax.blockMath`, but only support one pair, default `$$`.
- **MathJax** - MathJax configuration, only support some of the svg options, see [svg processor][svg-processor].## License
Licensed under [MIT](LICENSE).
[mathjax-node]: https://github.com/mathjax/MathJax-node
[svg-processor]: http://docs.mathjax.org/en/latest/options/output-processors/SVG.html#the-svg-output-processor