module Network.Orchid.Format.Latex (fLatex) where import Text.Document.Document import Network.Orchid.Core.Backend import Network.Orchid.Core.Format import Network.Protocol.Uri fLatex = WikiFormat "tex" "text/plain" latex latex :: Backend -> FilePath -> URI -> String -> IO Output latex _ _ _ src = return $ TextOutput $ either show toLaTeX $ fromWiki src