Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module provides a basic framework to render LaTeX formulae inside Pandoc documents for Hakyll pages.
See the latex-formulae page on GitHub for more information.
- initFormulaCompilerDataURI :: CacheSize -> EnvironmentOptions -> IO (PandocFormulaOptions -> Pandoc -> Compiler Pandoc)
- type CacheSize = Integer
- compileFormulaeDataURI :: EnvironmentOptions -> PandocFormulaOptions -> Pandoc -> Compiler Pandoc
Documentation
initFormulaCompilerDataURI :: CacheSize -> EnvironmentOptions -> IO (PandocFormulaOptions -> Pandoc -> Compiler Pandoc) Source
Creates a formula compiler with caching. Can be used as in the following minimal example:
main = do renderFormulae <- initFormulaCompilerDataURI 1000 defaultEnv hakyll $ match "posts/*.markdown" $ do route $ setExtension "html" compile $ pandocCompilerWithTransformM (renderFormulae defaultPandocFormulaOptions)
compileFormulaeDataURI :: EnvironmentOptions -> PandocFormulaOptions -> Pandoc -> Compiler Pandoc Source
A formula compiler that does not use caching, which works in a more drop-in fashion, as in:
compile $ pandocCompilerWithTransformM (compileFormulaeDataURI defaultEnv defaultPandocFormulaOptions)