bsouthga / elm-katex

LaTeX in Elm

Home Page:https://bsouthga.github.io/elm-katex/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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">

About

LaTeX in Elm

https://bsouthga.github.io/elm-katex/

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Elm 100.0%