Skip to content

Commit

Permalink
Mention \displaystyle workaround in README.
Browse files Browse the repository at this point in the history
until the question of display math API (KaTeX#66) is decided either way...
  • Loading branch information
cben committed Sep 29, 2014
1 parent 5722b45 commit 132120b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ var html = katex.renderToString("c = \\pm\\sqrt{a^2 + b^2}");
// '<span class="katex">...</span>'
```

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
Expand Down

0 comments on commit 132120b

Please sign in to comment.