Fixed trypandoc.
This commit is contained in:
parent
d1dd4f2e26
commit
ea684d257e
2 changed files with 2 additions and 4 deletions
|
@ -468,7 +468,7 @@ Executable trypandoc
|
||||||
Other-Modules: Prelude
|
Other-Modules: Prelude
|
||||||
default-language: Haskell2010
|
default-language: Haskell2010
|
||||||
if flag(trypandoc)
|
if flag(trypandoc)
|
||||||
Build-Depends: base, aeson, pandoc, skylighting,
|
Build-Depends: base, aeson, pandoc,
|
||||||
text, wai-extra, wai >= 0.3, http-types
|
text, wai-extra, wai >= 0.3, http-types
|
||||||
Buildable: True
|
Buildable: True
|
||||||
else
|
else
|
||||||
|
|
|
@ -10,7 +10,6 @@ import Network.HTTP.Types.URI (queryToQueryText)
|
||||||
import Text.Pandoc
|
import Text.Pandoc
|
||||||
import Text.Pandoc.Error (PandocError)
|
import Text.Pandoc.Error (PandocError)
|
||||||
import Text.Pandoc.Shared (tabFilter)
|
import Text.Pandoc.Shared (tabFilter)
|
||||||
import Text.Highlighting.Kate (pygments)
|
|
||||||
import Data.Aeson
|
import Data.Aeson
|
||||||
import qualified Data.Text as T
|
import qualified Data.Text as T
|
||||||
import Data.Text (Text)
|
import Data.Text (Text)
|
||||||
|
@ -51,8 +50,7 @@ writerOpts :: WriterOptions
|
||||||
writerOpts = def { writerReferenceLinks = True,
|
writerOpts = def { writerReferenceLinks = True,
|
||||||
writerEmailObfuscation = NoObfuscation,
|
writerEmailObfuscation = NoObfuscation,
|
||||||
writerHTMLMathMethod = MathJax "http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML",
|
writerHTMLMathMethod = MathJax "http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML",
|
||||||
writerHighlight = True,
|
writerHighlight = True }
|
||||||
writerHighlightStyle = pygments }
|
|
||||||
|
|
||||||
readerOpts :: ReaderOptions
|
readerOpts :: ReaderOptions
|
||||||
readerOpts = def { readerParseRaw = True,
|
readerOpts = def { readerParseRaw = True,
|
||||||
|
|
Loading…
Add table
Reference in a new issue