diff --git a/lib/Hakyll/Web/Pandoc.hs b/lib/Hakyll/Web/Pandoc.hs index 50e17925..f16a93e9 100644 --- a/lib/Hakyll/Web/Pandoc.hs +++ b/lib/Hakyll/Web/Pandoc.hs @@ -71,6 +71,9 @@ readPandocWith ropt item = #if MIN_VERSION_pandoc(3,8,3) AsciiDoc -> readAsciiDoc ro #endif +#if MIN_VERSION_pandoc(3,1,12) + Djot -> readDjot ro +#endif -- This preprocessing instruction can be dropped -- once the minimum supported GHC version is 8.10 #if MIN_VERSION_pandoc(3,1,3) diff --git a/lib/Hakyll/Web/Pandoc/FileType.hs b/lib/Hakyll/Web/Pandoc/FileType.hs index b7b3c40b..1eacd66e 100644 --- a/lib/Hakyll/Web/Pandoc/FileType.hs +++ b/lib/Hakyll/Web/Pandoc/FileType.hs @@ -37,6 +37,9 @@ data FileType #if MIN_VERSION_pandoc(3,8,3) | AsciiDoc #endif +#if MIN_VERSION_pandoc(3,1,12) + | Djot +#endif -- This preprocessing instruction can be dropped -- once the minimum supported GHC version is 8.10 #if MIN_VERSION_pandoc(3,1,3) @@ -79,6 +82,10 @@ fileType = uncurry fileType' . splitExtension fileType' _ ".asciidoc" = AsciiDoc fileType' _ ".adoc" = AsciiDoc #endif +#if MIN_VERSION_pandoc(3,1,12) + fileType' _ ".dj" = Djot + fileType' _ ".djot" = Djot +#endif -- This preprocessing instruction can be dropped -- once the minimum supported GHC version is 8.10 #if MIN_VERSION_pandoc(3,1,3)