Skip to content

Commit

Permalink
Build for release #4
Browse files Browse the repository at this point in the history
  • Loading branch information
akfish committed Mar 21, 2015
1 parent 5c79344 commit f261477
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 24 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ A hexo plugin that uses MathJax to render math equations. Features:

## Migration Note

### From 1.0.4 (Support Hexo 3.0)

Hexo 3.0 introduces multiple breaking changes. Versions before 1.0.5 won't work with it.
The following changes are made since 1.0.5 to adapt the new 3.0 API:

* Block math tag renamed from `math-block` to `math_block`

### From 1.0.3 and before

Since 1.0.4, MathJax scripts will be injected in `<body>` section instead of `<head>` section.
Expand Down Expand Up @@ -66,11 +73,11 @@ This equation {% math \cos 2\theta = \cos^2 \theta - \sin^2 \theta = 2 \cos^2 \

**Tag Block:**
```markdown
{% math-block %}
{% math_block %}
\begin{aligned}
\dot{x} & = \sigma(y-x) \\
\dot{y} & = \rho x - y - xz \\
\dot{z} & = -\beta z + xy
\end{aligned}
{% endmath-block %}
{% endmath_block %}
```
27 changes: 17 additions & 10 deletions bin/Command.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 3 additions & 5 deletions bin/Layout.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 8 additions & 6 deletions bin/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hexo-math",
"version": "1.0.4",
"version": "1.0.5",
"description": "Add MathJax support to hexo",
"main": "./bin/index",
"repository": {
Expand Down

0 comments on commit f261477

Please sign in to comment.