From c87511168d4c292c2f2cbf33e1041a624bb9f6c2 Mon Sep 17 00:00:00 2001 From: Ben Alpert Date: Wed, 15 Oct 2014 18:25:12 -0700 Subject: [PATCH] Add braces around displaystyle This makes a difference for expressions like `2 \choose 3`. Auditors: emily --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8172e7161..7118dee4e 100644 --- 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); ```