diff --git a/pandoc.cabal b/pandoc.cabal
index faa08e1e3..e4be768ea 100644
--- a/pandoc.cabal
+++ b/pandoc.cabal
@@ -417,7 +417,7 @@ library
                  JuicyPixels >= 3.1.6.1 && < 3.4,
                  Glob >= 0.7 && < 0.11,
                  cmark-gfm >= 0.2 && < 0.3,
-                 doctemplates >= 0.7.2 && < 0.8,
+                 doctemplates >= 0.8 && < 0.9,
                  network-uri >= 2.6 && < 2.7,
                  network >= 2.6,
                  http-client >= 0.4.30 && < 0.7,
@@ -738,7 +738,7 @@ test-suite test-pandoc
                   executable-path >= 0.0 && < 0.1,
                   zip-archive >= 0.2.3.4 && < 0.5,
                   xml >= 1.3.12 && < 1.4,
-                  doctemplates >= 0.7.2 && < 0.8,
+                  doctemplates >= 0.8 && < 0.9,
                   Glob >= 0.7 && < 0.11
   if impl(ghc < 8.4)
      hs-source-dirs: prelude
diff --git a/stack.yaml b/stack.yaml
index e228e900c..ff7095208 100644
--- a/stack.yaml
+++ b/stack.yaml
@@ -21,7 +21,7 @@ extra-deps:
 - doclayout-0.2.0.1
 - HsYAML-0.2.0.0
 - HsYAML-aeson-0.2.0.0
-- doctemplates-0.7.2
+- doctemplates-0.8
 - pandoc-citeproc-0.16.4
 ghc-options:
    "$locals": -fhide-source-paths -Wno-missing-home-modules