Mention \displaystyle workaround in README

until the question of display math API (#66) is decided either way...
This commit is contained in:
Beni Cherniavsky-Paskin 2014-10-01 18:58:26 +03:00
parent 5722b45633
commit 80c4ca7c71

View File

@ -39,6 +39,14 @@ var html = katex.renderToString("c = \\pm\\sqrt{a^2 + b^2}");
Make sure to include the CSS and font files, but there is no need to include the JavaScript. Make sure to include the CSS and font files, but there is no need to include the JavaScript.
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);
// OR
var html = katex.renderToString("\\displaystyle " + formula);
```
## Contributing ## Contributing
See [CONTRIBUTING.md](CONTRIBUTING.md) See [CONTRIBUTING.md](CONTRIBUTING.md)