diff --git a/README.md b/README.md index ea1479d32d..69cbbf42c3 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,12 @@ var html = katex.renderToString("c = \\pm\\sqrt{a^2 + b^2}"); // '...' ``` +Those APIs default to inline math typesetting; for display math you can prepend `\displaystyle` (#66): + +```js +katex.render("\\displaystyle c = \\pm\\sqrt{a^2 + b^2}", element); +``` + Make sure to include the CSS and font files, but there is no need to include the JavaScript. ## Contributing