Skip to content

bsouthga/elm-katex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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