@@ -67,12 +67,15 @@ writerOptions = defaultWriterOptions
67getRenderFunction :: String -> (String -> String)
67getRenderFunction :: String -> (String -> String)
68getRenderFunction ".html" = id
68getRenderFunction ".html" = id
69getRenderFunction ext = writeHtmlString writerOptions
69getRenderFunction ext = writeHtmlString writerOptions
70− . readFunction ext readerOptions
70+ . readFunction ext (readOptions ext)
72 readFunction ".rst" = readRST
72 readFunction ".rst" = readRST
73 readFunction ".tex" = readLaTeX
73 readFunction ".tex" = readLaTeX
74 readFunction _ = readMarkdown
74 readFunction _ = readMarkdown
76+ readOptions ".lhs" = readerOptions { stateLiterateHaskell = True }
77+ readOptions _ = readerOptions
76-- | Split a page into sections.
79-- | Split a page into sections.
77splitAtDelimiters :: [String] -> [[String]]
80splitAtDelimiters :: [String] -> [[String]]
78splitAtDelimiters [] = []
81splitAtDelimiters [] = []