www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit c87511168d4c292c2f2cbf33e1041a624bb9f6c2
parent f997bdd64b5d30c767474f6828fd3d2d23310a02
Author: Ben Alpert <alpert@khanacademy.org>
Date:   Wed, 15 Oct 2014 18:25:12 -0700

Add braces around displaystyle

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

Auditors: emily

Diffstat:
MREADME.md | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/README.md b/README.md @@ -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); ```