Some markdown fixes in the docs

This commit is contained in:
jos 2015-03-30 10:05:35 +02:00
parent d467f1f5db
commit cedb5e04c6

View File

@ -159,6 +159,7 @@ functions of that name.
**Examples for option 2**
```js
var customFunctions = {
binomial: function (n, k) {
@ -179,6 +180,7 @@ var customLaTeX = {
```
You can simply use your custom toTex functions by passing them to `toTex`:
```js
math.import(customFunctions);
var expression = math.parse('binomial(factorial(2),1)');
@ -214,7 +216,9 @@ var expression = math.parse('1+2');
var latex = expression.toTex(customLaTeX);
//latex now contains '\mbox{one} plus \mbox{two}'
```
Another example in conjunction with custom functions:
```js
var customFunctions = {
binomial: function (n, k) {