summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastian Schwarz <seschwar@googlemail.com>2010-01-18 18:00:39 +0100
committerSebastian Schwarz <seschwar@googlemail.com>2010-01-18 18:00:39 +0100
commite01531bd7593b871d8fb18c5ea509394eb8785ba (patch)
treebf4907fa24bc7cbf91eabbbeebc7bfd80aac6c27 /src
parent47fae0ed2a075d6e685963c1ce411fe28d1fcfd5 (diff)
downloadhakyll-e01531bd7593b871d8fb18c5ea509394eb8785ba.tar.gz
Added reStructuredText support.
Why not? Quickly tested. Seems to work fine.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Hakyll/File.hs1
-rw-r--r--src/Text/Hakyll/Page.hs1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/Text/Hakyll/File.hs b/src/Text/Hakyll/File.hs
index 2378ae9..81c4170 100644
--- a/src/Text/Hakyll/File.hs
+++ b/src/Text/Hakyll/File.hs
@@ -46,6 +46,7 @@ toURL path = if takeExtension path `elem` [ ".markdown"
, ".mkd"
, ".mkdn"
, ".mkdwn"
+ , ".rst"
, ".text"
, ".tex"
]
diff --git a/src/Text/Hakyll/Page.hs b/src/Text/Hakyll/Page.hs
index d338542..e807442 100644
--- a/src/Text/Hakyll/Page.hs
+++ b/src/Text/Hakyll/Page.hs
@@ -60,6 +60,7 @@ renderFunction ".html" = id
renderFunction ext = writeHtmlString writerOptions
. readFunction ext defaultParserState
where
+ readFunction ".rst" = readRST
readFunction ".tex" = readLaTeX
readFunction _ = readMarkdown