Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 730 Bytes

README.md

File metadata and controls

32 lines (21 loc) · 730 Bytes

Render LaTeX in Elm with KaTeX

This package provides a light wrapper over the KaTeX library by Khan Academy.

Example usage

Basic Usage

integral : Html msg
integral =
    KaTeX.render """
  \int_0^\infty x\,\mathrm{d}x.
  """

Note!

This library produces elements with the correct KaTeX classes, but does not include the requisite style sheet to properly display them. Make sure to include the KaTeX css with your app via downloading it here or including a link to a CDN.

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.6.0/katex.min.css">