pandoc-server 0.1.0.11 → 0.1.1
raw patch · 2 files changed
+8/−6 lines, 2 filesdep ~pandocPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: pandoc
API changes (from Hackage documentation)
Files
- pandoc-server.cabal +2/−2
- src/Text/Pandoc/Server.hs +6/−4
pandoc-server.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.4 name: pandoc-server-version: 0.1.0.11+version: 0.1.1 build-type: Simple license: GPL-2.0-or-later license-file: COPYING.md@@ -49,7 +49,7 @@ library import: common-options- build-depends: pandoc >= 3.5 && < 3.8,+ build-depends: pandoc >= 3.8 && < 3.9, pandoc-types >= 1.22 && < 1.24, containers >= 0.6.0.1 && < 0.9, aeson >= 2.0 && < 2.3,
src/Text/Pandoc/Server.hs view
@@ -275,8 +275,11 @@ let isStandalone = optStandalone opts let toformat = formatName writerFormat- hlStyle <- traverse (lookupHighlightingStyle . T.unpack)- $ optHighlightStyle opts+ hlStyle <- case optSyntaxHighlighting opts of+ "none" -> pure NoHighlighting+ "idiomatic" -> pure IdiomaticHighlighting+ "default" -> pure DefaultHighlighting+ s -> Skylighting <$> lookupHighlightingStyle (T.unpack s) mbTemplate <- if isStandalone then case optTemplate opts of@@ -327,8 +330,7 @@ , writerHtmlQTags = optHtmlQTags opts , writerSlideLevel = optSlideLevel opts , writerTopLevelDivision = optTopLevelDivision opts- , writerListings = optListings opts- , writerHighlightStyle = hlStyle+ , writerHighlightMethod = hlStyle , writerSetextHeaders = optSetextHeaders opts , writerListTables = optListTables opts , writerEpubSubdirectory = T.pack $ optEpubSubdirectory opts