diff --git a/pandoc-crossref.cabal b/pandoc-crossref.cabal
--- a/pandoc-crossref.cabal
+++ b/pandoc-crossref.cabal
@@ -4,10 +4,10 @@
 --
 -- see: https://github.com/sol/hpack
 --
--- hash: 687fe16beac2bf05405a0f58a865e76f50971758d90614f06a51116717839e64
+-- hash: e538ed94d47c10d481faaa75156c6789c999c3df068d102904fc9bb05df2cda8
 
 name:           pandoc-crossref
-version:        0.3.5.0
+version:        0.3.6.0
 synopsis:       Pandoc filter for cross-references
 description:    pandoc-crossref is a pandoc filter for numbering figures, equations, tables and cross-references to them.
 category:       Text
@@ -104,7 +104,7 @@
     , directory >=1 && <1.4
     , filepath >=1.1 && <1.5
     , mtl >=1.1 && <2.3
-    , pandoc >=2.8 && <2.9
+    , pandoc >=2.9 && <2.10
     , pandoc-types >=1.20 && <1.21
     , roman-numerals ==0.5.*
     , syb >=0.4 && <0.8
@@ -135,7 +135,7 @@
     , mtl >=1.1 && <2.3
     , open-browser >=0.2 && <0.3
     , optparse-applicative >=0.13 && <0.16
-    , pandoc >=2.8 && <2.9
+    , pandoc >=2.9 && <2.10
     , pandoc-crossref
     , pandoc-types >=1.20 && <1.21
     , roman-numerals ==0.5.*
@@ -163,7 +163,7 @@
     , filepath >=1.1 && <1.5
     , hspec >=2.4.4 && <3
     , mtl >=1.1 && <2.3
-    , pandoc >=2.8 && <2.9
+    , pandoc >=2.9 && <2.10
     , pandoc-crossref
     , pandoc-types >=1.20 && <1.21
     , roman-numerals ==0.5.*
@@ -212,7 +212,7 @@
     , filepath >=1.1 && <1.5
     , hspec >=2.4.4 && <3
     , mtl >=1.1 && <2.3
-    , pandoc >=2.8 && <2.9
+    , pandoc >=2.9 && <2.10
     , pandoc-types >=1.20 && <1.21
     , roman-numerals ==0.5.*
     , syb >=0.4 && <0.8
diff --git a/src/ManData.hs b/src/ManData.hs
--- a/src/ManData.hs
+++ b/src/ManData.hs
@@ -25,7 +25,6 @@
 import qualified Data.Text as T
 import System.IO
 import qualified Text.Pandoc as P
-import qualified Text.Pandoc.Templates as PT
 import Control.DeepSeq
 import Data.String
 import Text.Pandoc.Highlighting (pygments)
@@ -60,8 +59,7 @@
 embedManualHtml :: Q Exp
 embedManualHtml = do
   tt <- fmap (either (error . show) id) . runIO . P.runIO
-          $   P.getDefaultTemplate "html5"
-          >>= fmap (either (error . show) id) . PT.compileTemplate ""
+          $   P.compileDefaultTemplate "html5"
   embedManual $ P.writeHtml5String P.def{
     P.writerTemplate = Just tt
   , P.writerHighlightStyle = Just pygments
