Add braces around displaystyle
This makes a difference for expressions like `2 \choose 3`. Auditors: emily
This commit is contained in:
parent
f997bdd64b
commit
c87511168d
|
@ -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);
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue
Block a user