math-view

1.1.0 • Public • Published

math-view

A web component that renders equations written using mathlive

Usage

<math-view latex="x=\frac{-b\pm \sqrt{b^2-4ac}}{2a}"></math-view>

Options

  • latex - The latex string to render
  • tag - The tag to render the latex string in. Default is span
  • defaultmode - The default mode for rendering (math, inline-math, text). Default is math
  • lettershapestyle - The letter shape style to use (tex, french, iso, upright, auto). Default is auto

Package Sidebar

Install

npm i math-view

Weekly Downloads

2

Version

1.1.0

License

MIT

Unpacked Size

3.8 kB

Total Files

5

Last publish

Collaborators

  • melvinotieno