Fixed indentation in auto-render readme (#481)

This commit is contained in:
Andrey Mikhaylov (lolmaus) 2016-05-26 20:10:54 +03:00 committed by Ben Alpert
parent 1cf10c4cd6
commit b120b1c3d8

View File

@ -41,23 +41,24 @@ nodes inside this element and render the math in them.
`options` is an optional object argument with the following keys: `options` is an optional object argument with the following keys:
- `delimiters`: This is a list of delimiters to look for math. Each delimiter - `delimiters`: This is a list of delimiters to look for math. Each delimiter
has three properties: has three properties:
- `left`: A string which starts the math expression (i.e. the left delimiter). - `left`: A string which starts the math expression (i.e. the left delimiter).
- `right`: A string which ends the math expression (i.e. the right delimiter). - `right`: A string which ends the math expression (i.e. the right delimiter).
- `display`: A boolean of whether the math in the expression should be - `display`: A boolean of whether the math in the expression should be
rendered in display mode or not. rendered in display mode or not.
The default value is: The default value is:
```js
[ ```js
{left: "$$", right: "$$", display: true}, [
{left: "\\[", right: "\\]", display: true}, {left: "$$", right: "$$", display: true},
{left: "\\(", right: "\\)", display: false} {left: "\\[", right: "\\]", display: true},
] {left: "\\(", right: "\\)", display: false}
``` ]
```
- `ignoredTags`: This is a list of DOM node types to ignore when recursing - `ignoredTags`: This is a list of DOM node types to ignore when recursing
through. The default value is through. The default value is
`["script", "noscript", "style", "textarea", "pre", "code"]`. `["script", "noscript", "style", "textarea", "pre", "code"]`.