mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-26 18:26:36 +00:00
Fixed trypandoc.
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user