diff --git a/CHANGELOG.md b/CHANGELOG.md
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,10 @@
 
 # Releases
 
+## Hakyll 4.16.7.1 (2025-09-06)
+
+- Added support for pandoc 3.8 (#1080).
+
 ## Hakyll 4.16.7.0 (2025-08-29)
 
 - Validate the output of XML-based feed functions such as `renderRss` by default (#1078).
diff --git a/hakyll.cabal b/hakyll.cabal
--- a/hakyll.cabal
+++ b/hakyll.cabal
@@ -1,5 +1,5 @@
 Name:    hakyll
-Version: 4.16.7.0
+Version: 4.16.7.1
 
 Synopsis: A static website compiler library
 Description:
@@ -253,7 +253,7 @@
     Other-Modules:
       Hakyll.Web.Pandoc.Binary
     Build-Depends:
-      pandoc >= 2.11 && < 2.20 || >= 3.0 && < 3.8,
+      pandoc >= 2.11 && < 2.20 || >= 3.0 && < 3.9,
       pandoc-types >= 1.22 && < 1.24
     Cpp-options:
       -DUSE_PANDOC
@@ -320,7 +320,7 @@
     Cpp-options:
       -DUSE_PANDOC
     Build-Depends:
-      pandoc >= 2.11 && < 2.20 || >= 3.0 && < 3.8,
+      pandoc >= 2.11 && < 2.20 || >= 3.0 && < 3.9,
       pandoc-types >= 1.22 && < 1.24
 
 
@@ -355,5 +355,5 @@
     base      >= 4.12  && < 5,
     directory >= 1.0   && < 1.4,
     filepath  >= 1.0   && < 1.6,
-    pandoc    >= 2.11  && < 2.20 || >= 3.0 && < 3.8,
+    pandoc    >= 2.11  && < 2.20 || >= 3.0 && < 3.9,
     pandoc-types >= 1.22 && < 1.24
diff --git a/lib/Hakyll/Web/Pandoc.hs b/lib/Hakyll/Web/Pandoc.hs
--- a/lib/Hakyll/Web/Pandoc.hs
+++ b/lib/Hakyll/Web/Pandoc.hs
@@ -230,7 +230,14 @@
       writerExtensions = enableExtension Ext_smart pandocExtensions
     , -- We want to have hightlighting by default, to be compatible with earlier
       -- Hakyll releases
+#if MIN_VERSION_pandoc(3,8,0)
+      -- Starting with pandoc 3.8, the highlighting
+      -- system was overhauled to have more than just Skylighting
+      -- styles
+      writerHighlightMethod = Skylighting pygments
+#else
       writerHighlightStyle = Just pygments
+#endif
     , -- Do not word-wrap produced HTML, and do not undo any word-wrapping
       -- that's already present in the markup. This is how Pandoc operated
       -- prior to 2.17, but the behaviour was changed for consistency with
