module MB.Mathjax
( mathjaxProcessor
)
where
import qualified Text.Pandoc as Pandoc
import MB.Types
mathjaxProcessor :: Processor
mathjaxProcessor =
nullProcessor { applyWriterOptions = Just mathjaxOpts
, pageHead = Just mathjaxPageHead
}
mathjaxOpts :: Pandoc.WriterOptions -> Pandoc.WriterOptions
mathjaxOpts opts =
opts { Pandoc.writerHTMLMathMethod = Pandoc.MathJax "MathJax/MathJax.js"
}
mathjaxPageHead :: String
mathjaxPageHead =
"\n\
\\n\
\\n"