Added reStructuredText support.
Why not? Quickly tested. Seems to work fine.
commite01531bd7593b871d8fb18c5ea509394eb8785ba
authorSebastian Schwarz <seschwar@googlemail.com>
dateMon 18 Jan 2010, 18:00 (17 years ago)
parent47fae0e
src/Text/Hakyll/File.hs+1
@@ -46,6 +46,7 @@ toURL path = if takeExtension path `elem` [ ".markdown"
4646 , ".mkd"
4747 , ".mkdn"
4848 , ".mkdwn"
49+ , ".rst"
4950 , ".text"
5051 , ".tex"
5152 ]
src/Text/Hakyll/Page.hs+1
@@ -60,6 +60,7 @@ renderFunction ".html" = id
6060renderFunction ext = writeHtmlString writerOptions
6161 . readFunction ext defaultParserState
6262 where
63+ readFunction ".rst" = readRST
6364 readFunction ".tex" = readLaTeX
6465 readFunction _ = readMarkdown
6566