Fix regression on code blocks in markdown pages

This commit is contained in:
Chris Done 2014-05-29 11:42:22 +02:00
parent e3229f0f6d
commit d5e1506fd1

View file

@ -15,6 +15,7 @@ import qualified Data.Text.IO as ST
import qualified Data.Text.Lazy as L
import System.Directory
import System.FilePath
import Text.Blaze.Html5 (pre)
import Text.Markdown
-- | Get the HTML for the given markdown static file.
@ -30,4 +31,4 @@ getMarkdown name =
renderer lang (src,_) =
if lang == Just "haskell"
then haskellPre src
else toHtml src
else pre $ toHtml src