yotamDvir / elm-katex / Katex.Configs

You should use this module only if you need both math and human configurations.

Understand Katex.Configs.Math and Katex.Configs.Human before reading on.

Why is this module necessary?

You may need both types of configurations (math and human).

Types


type Latex m h

A LaTeX instance.

Create LaTeX instance

human : (h -> String) -> Latex m h

Like Katex.Configs.Human.human.

inline : (m -> String) -> Latex m h

Like Katex.Configs.Math.inline.

display : (m -> String) -> Latex m h

Like Katex.Configs.Math.display.

Process LaTeX instances

print : m -> h -> Latex m h -> String

Like Katex.print, but depends on the math and human configurations.

generate : (m -> h -> Maybe Basics.Bool -> String -> a) -> m -> h -> Latex m h -> a

Like Katex.generate, but depends on the math and human configurations. The generating function has access to the math and human configurations, but this is usually unnecessary, in which case simply use a generating function which ignores its first arguments.