@@ -61,10 +61,9 @@ renderFunction ".html" = id
6161renderFunction ext = writeHtmlString writerOptions
6262 . readFunction ext defaultParserState
6363 where
64− readFunction ".markdown" = readMarkdown
65− readFunction ".md" = readMarkdown
66− readFunction ".tex" = readLaTeX
67− readFunction _ = readMarkdown
64+ readFunction ".rst" = readRST
65+ readFunction ".tex" = readLaTeX
66+ readFunction _ = readMarkdown
6867
6968-- | Read metadata header from a file handle.
7069readMetaData :: Handle -> Hakyll [(String, String)]
@@ -134,7 +133,7 @@ readPage pagePath = do
134133 , ("path", pagePath)
135134 ] ++ metaData
136135
137− seq (($|) id rdeepseq rendered) $ liftIO $ hClose handle
136+ seq (($|) id rdeepseq rendered) $ hClose handle
138137
139138 -- Cache if needed
140139 if getFromCache then return () else cachePage page