Skip to content

Commit 4dcf4b0

Browse files
Add support for pandoc >= 3.8 && <3.11
Co-authored-by: hololeap <hololeap@protonmail.com>
1 parent 0fe6b0a commit 4dcf4b0

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

gitit.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ Library
134134
mtl,
135135
old-time,
136136
temporary,
137-
pandoc >= 2.9 && < 2.20 || >= 3.0 && < 3.8,
137+
pandoc >= 2.9 && < 2.20 || >= 3.0 && < 3.11,
138138
pandoc-types >= 1.20 && < 1.24,
139139
skylighting >= 0.8.2.3 && < 0.15,
140140
bytestring,

src/Network/Gitit/ContentTransformer.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,11 @@ pandocToHtml pandocContents = do
515515
MathJax u -> Pandoc.MathJax $ T.pack u
516516
RawTeX -> Pandoc.PlainMath
517517
, writerTableOfContents = toc
518+
#if MIN_VERSION_pandoc(3,8,0)
519+
, writerHighlightMethod = Skylighting pygments
520+
#else
518521
, writerHighlightStyle = Just pygments
522+
#endif
519523
, writerExtensions = if bird
520524
then enableExtension Ext_literate_haskell
521525
$ writerExtensions def

0 commit comments

Comments
 (0)