| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Text.Pandoc.Writers.Math
- texMathToInlines :: PandocMonad m => MathType -> String -> m [Inline]
- convertMath :: PandocMonad m => (DisplayType -> [Exp] -> a) -> MathType -> String -> m (Either Inline a)
- defaultMathJaxURL :: String
- defaultKaTeXURL :: String
Documentation
Arguments
| :: PandocMonad m | |
| => MathType | |
| -> String | String to parse (assumes |
| -> m [Inline] |
Converts a raw TeX math formula to a list of Pandoc inlines.
Defaults to raw formula between $ or $$ characters if entire formula
can't be converted.
convertMath :: PandocMonad m => (DisplayType -> [Exp] -> a) -> MathType -> String -> m (Either Inline a) Source #
Converts a raw TeX math formula using a writer function, issuing a warning and producing a fallback (a raw string) on failure.