commit 6aa70e33e4f405c41be60a9ddc399a630c37cf16 parent def1a47935cce6531323134380fc394b1376e1b5 Author: Emily Eisenberg <xymostech@gmail.com> Date: Wed, 1 Oct 2014 15:06:02 -0700 Merge pull request #137 from cben/displaystyle Mention `\displaystyle` workaround in README Diffstat:
| M | README.md | | | 8 | ++++++++ |
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/README.md b/README.md @@ -33,6 +33,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. +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 See [CONTRIBUTING.md](CONTRIBUTING.md)