jxxcarlson/meenylatex/8.0.0

NOTE: the latest version is 15.2.0

MiniLatex

This library exposes functions for rendering MiniLaTeX text into HTML. Most users will need only (1) the functions exposed in the MiniLatex module and (2) EditRecord, which is exposed in the Differ module.

See MiniLatex Live for a no-login demo of the MiniLatex technology. Source code

See this Hackernoon article for an explanation of the theory behind the MiniLatex package.

API

render : String -> String -> Html msg

The function call render macros sourceTest produces an HTML element or Html msg value corresponding to the MiniLatex source text sourceText. The macro definitions in macros are prepended to this string and are used by MathJax to render purely mathematical text. The macros string may be empty.

renderWithSeed : Int -> String -> String -> Html msg

Like render, but used the seed to define the ids for each paragraph.

type alias LatexState =
LatexState

Auxiliary data compiled during parsing

type alias TocEntry =
TocEntry

Describes an entry in the table of contents

type alias TableOfContents =
TableOfContents

The table of contents

emptyLatexState : LatexState

Used for initialization