1
- markdown-it-math
2
- ================
3
-
4
1
[ ![ npm] ( https://img.shields.io/npm/v/markdown-it-math.svg )] ( https://www.npmjs.com/package/markdown-it-math )
5
2
[ ![ Build Status] ( https://travis-ci.org/runarberg/markdown-it-math.svg?branch=master )] ( https://travis-ci.org/runarberg/markdown-it-math )
6
3
4
+ ** Note:** This is a general [ markdown-it] [ markdown-it ] math plugin. It
5
+ was originally designed to render [ MathML] [ mathml ] . If you intend to
6
+ use [ MathJax] [ mathjax ] , [ markdown-it-mathjax] [ markdown-it-mathjax ]
7
+ might be a better choise.
8
+
9
+ markdown-it-math
10
+ ================
11
+
7
12
``` md
8
13
Pythagoran theorem is $$a^2 + b^2 = c^2$$.
9
14
@@ -50,7 +55,7 @@ var options = {
50
55
}
51
56
```
52
57
53
- (See [ ascii2mathml] ( http://runarberg.github.io/ ascii2mathml/ ) for reference about the default renderer).
58
+ (See [ ascii2mathml] [ ascii2mathml ] for reference about the default renderer).
54
59
55
60
56
61
Examples
@@ -68,7 +73,7 @@ md.render("$$40,2$$");
68
73
// <p><math><mn>40,2</mn></math></p>
69
74
```
70
75
71
- Using [ TeXZilla] ( http://fred-wang.github.io/TeXZilla/ ) as renderer
76
+ Using [ TeXZilla] [ texzilla ] as renderer
72
77
73
78
``` javascript
74
79
var texzilla = require (' texzilla' );
@@ -114,3 +119,9 @@ e = sum_(n=0)^oo 1/n!
114
119
```
115
120
116
121
[ 1 ] : https://github.com/markdown-it/markdown-it/blob/master/docs/development.md#why-my-inline-rule-is-not-executed
122
+ [ ascii2mathml ] : http://runarberg.github.io/ascii2mathml/
123
+ [ mathjax ] : https://www.mathjax.org/
124
+ [ mathml ] : https://www.w3.org/TR/MathML/
125
+ [ markdown-it ] : https://github.com/markdown-it/markdown-it
126
+ [ markdown-it-mathjax ] : https://www.npmjs.com/package/markdown-it-mathjax
127
+ [ texzilla ] : http://fred-wang.github.io/TeXZilla/
0 commit comments