Add braces around displaystyle

This makes a difference for expressions like `2 \choose 3`.

Auditors: emily
This commit is contained in:
Ben Alpert 2014-10-15 18:25:12 -07:00
parent f997bdd64b
commit c87511168d

View File

@ -36,7 +36,7 @@ Make sure to include the CSS and font files, but there is no need to include the
These APIs default to inline math typesetting; for display math you can prepend `\displaystyle` ([#66](https://github.com/Khan/KaTeX/issues/66)):
```js
katex.render("\\displaystyle " + formula, element);
katex.render("\\displaystyle {" + formula + "}, element);
// OR
var html = katex.renderToString("\\displaystyle " + formula);
```