Skip to content

Commit

Permalink
Merge pull request #135 from curbengh/v4.0.0
Browse files Browse the repository at this point in the history
release: 4.0.0
  • Loading branch information
curbengh authored Aug 21, 2020
2 parents 8bcfd6a + 5158990 commit b527646
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ math:
options:
throwOnError: false
mathjax:
css: 'https://cdn.jsdelivr.net/gh/hexojs/hexo-math/dist/style.css'
css: 'https://cdn.jsdelivr.net/npm/hexo-math@4.0.0/dist/style.css'
options:
conversion:
display: false
Expand Down Expand Up @@ -203,6 +203,14 @@ Following options will be parsed as argument for that specific content:
}
```

## Similar project

- [hexo-filter-mathjax]: A MathJax plugin developed by @stevenjoezhang, who is also a Hexo developer. It enables you to write LaTeX in-line within your post without using a tag `{% %}`.
* hexo-math uses tag plugin approach due to minor incompatibility between LaTeX and [marked], the default markdown renderer of Hexo (via [hexo-renderer-marked]).

[KaTex]: https://katex.org/
[MathJax]: https://www.mathjax.org/
[Hexo]: https://hexo.io/
[hexo-filter-mathjax]: https://github.com/next-theme/hexo-filter-mathjax
[marked]: https://github.com/markedjs/marked
[hexo-renderer-marked]: https://github.com/hexojs/hexo-renderer-marked
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ hexo.config.math = Object.assign({
}
},
mathjax: {
css: 'https://cdn.jsdelivr.net/gh/hexojs/hexo-math/dist/style.css',
css: 'https://cdn.jsdelivr.net/npm/hexo-math@4.0.0/dist/style.css',
options: {
// https://docs.mathjax.org/en/latest/web/typeset.html#conversion-options
conversion: {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hexo-math",
"version": "3.0.4",
"version": "4.0.0",
"description": "Add KaTeX and MathJax support to Hexo",
"main": "index.js",
"directories": {
Expand Down Expand Up @@ -44,7 +44,7 @@
"chai": "^4.2.0",
"eslint": "^7.5.0",
"eslint-config-hexo": "^4.1.0",
"hexo": "hexojs/hexo",
"hexo": "^5.0.2",
"mocha": "^8.0.1"
}
}

0 comments on commit b527646

Please sign in to comment.