Skip to content

Commit

Permalink
Added ConTeXt export.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgm committed Nov 11, 2008
1 parent 221bf66 commit 2b90654
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Gitit.hs
Expand Up @@ -899,9 +899,13 @@ respondLaTeX :: Pandoc -> Response
respondLaTeX = setContentType "text/latex" . toResponse .
writeLaTeX (defaultRespOptions {writerHeader = defaultLaTeXHeader})

respondConTeXt :: Pandoc -> Response
respondConTeXt = setContentType "text/context" . toResponse .
writeLaTeX (defaultRespOptions {writerHeader = defaultConTeXtHeader})

exportFormats :: [(String, Pandoc -> Response)] -- (description, mime type, writer)
exportFormats = [ ("LaTeX", respondLaTeX)
]
, ("ConTeXt", respondConTeXt) ]

exportBox :: String -> Html
exportBox page =
Expand Down

0 comments on commit 2b90654

Please sign in to comment.