summaryrefslogtreecommitdiff
path: root/lib/Hakyll/Web
diff options
context:
space:
mode:
authorChris Jensen <cjjensen01@aol.com>2020-12-29 17:07:28 +0000
committerGitHub <noreply@github.com>2020-12-29 20:07:28 +0300
commitef1bad68d6e9d62da7a1115a7d75bad689b62817 (patch)
tree695e0bb91caa15915de8935e3da4bd9db6ba66d2 /lib/Hakyll/Web
parent478a2e8590c160d0ca657bfbd8e5c852034f651f (diff)
downloadhakyll-ef1bad68d6e9d62da7a1115a7d75bad689b62817.tar.gz
Add documentation for the pandocBiblioCompiler (#828)
* Add documentation for pandoc * Fix grammar
Diffstat (limited to 'lib/Hakyll/Web')
-rw-r--r--lib/Hakyll/Web/Pandoc/Biblio.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Hakyll/Web/Pandoc/Biblio.hs b/lib/Hakyll/Web/Pandoc/Biblio.hs
index 567f478..566c706 100644
--- a/lib/Hakyll/Web/Pandoc/Biblio.hs
+++ b/lib/Hakyll/Web/Pandoc/Biblio.hs
@@ -122,6 +122,7 @@ readPandocBiblio ropt csl biblio item = do
zeroTime = Time.UTCTime (toEnum 0) 0
--------------------------------------------------------------------------------
+-- | Compiles a markdown file via Pandoc. Requires the .csl and .bib files to be known to the compiler via match statements.
pandocBiblioCompiler :: String -> String -> Compiler (Item String)
pandocBiblioCompiler cslFileName bibFileName = do
csl <- load $ fromFilePath cslFileName