aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/LaTeXMathML.hs
blob: 1eb3c23cc1b118428f036dad3ca2fbe3f53c92ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{-# LANGUAGE CPP, TemplateHaskell #-}
-- | Definitions for use of LaTeXMathML in HTML.  
-- (See <http://math.etsu.edu/LaTeXMathML/>)
module Text.Pandoc.LaTeXMathML ( latexMathMLScript ) where
import Text.Pandoc.TH ( contentsOf )
import System.FilePath ( (</>) )

-- | String containing LaTeXMathML javascript.
latexMathMLScript :: String
#ifndef __HADDOCK__
latexMathMLScript = "<script type=\"text/javascript\">\n" ++
                    $(contentsOf $ "data" </> "LaTeXMathML.js.comment") ++
                    $(contentsOf $ "data" </> "LaTeXMathML.js.packed") ++ "</script>\n"
#endif