Fixed trypandoc.

This commit is contained in:
John MacFarlane 2017-01-29 20:52:57 +01:00
parent d1dd4f2e26
commit ea684d257e
2 changed files with 2 additions and 4 deletions

View file

@ -468,7 +468,7 @@ Executable trypandoc
Other-Modules: Prelude
default-language: Haskell2010
if flag(trypandoc)
Build-Depends: base, aeson, pandoc, skylighting,
Build-Depends: base, aeson, pandoc,
text, wai-extra, wai >= 0.3, http-types
Buildable: True
else

View file

@ -10,7 +10,6 @@ import Network.HTTP.Types.URI (queryToQueryText)
import Text.Pandoc
import Text.Pandoc.Error (PandocError)
import Text.Pandoc.Shared (tabFilter)
import Text.Highlighting.Kate (pygments)
import Data.Aeson
import qualified Data.Text as T
import Data.Text (Text)
@ -51,8 +50,7 @@ writerOpts :: WriterOptions
writerOpts = def { writerReferenceLinks = True,
writerEmailObfuscation = NoObfuscation,
writerHTMLMathMethod = MathJax "http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML",
writerHighlight = True,
writerHighlightStyle = pygments }
writerHighlight = True }
readerOpts :: ReaderOptions
readerOpts = def { readerParseRaw = True,