Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to enable/disable Latex "display mode". #1

Closed
gbmhunter opened this issue Nov 17, 2015 · 0 comments · Fixed by #3
Closed

Add the ability to enable/disable Latex "display mode". #1

gbmhunter opened this issue Nov 17, 2015 · 0 comments · Fixed by #3

Comments

@gbmhunter
Copy link

As mentioned in the KaTeX readme:

Rendering options

You can provide an object of options as the last argument to katex.render and katex.renderToString. Available options are:

displayMode: boolean. If true the math will be rendered in display mode, which will put the math in display style (so \int and \sum are large, for example), and will center the math on the page on its own line. If false the math will be rendered in inline mode. (default: false)

It would be great to enable/disable this with something like:

<Latex displayMode={true}>$y = x$</Latex>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant