summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2012-09-29 15:09:04 -0400
committerJohn MacFarlane <jgm@berkeley.edu>2012-09-29 15:09:25 -0400
commitc78cc02abf793539e4bcd6c1037d7007946103ca (patch)
treeb8abf5c7d4f40604fbae2e841ead7b2415e7aad6
parentb75a5b631b08871ea58a0c464e3cfef2e436f930 (diff)
Biblio: csl parameter now a string rather than a filepath.
API change.
-rw-r--r--src/Text/Pandoc/Biblio.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Text/Pandoc/Biblio.hs b/src/Text/Pandoc/Biblio.hs
index eb82f10b2..f1fbb28cb 100644
--- a/src/Text/Pandoc/Biblio.hs
+++ b/src/Text/Pandoc/Biblio.hs
@@ -43,12 +43,12 @@ import Control.Monad
-- | Process a 'Pandoc' document by adding citations formatted
-- according to a CSL style, using 'citeproc' from citeproc-hs.
-processBiblio :: FilePath -> Maybe FilePath -> [Reference] -> Pandoc
+processBiblio :: String -> Maybe FilePath -> [Reference] -> Pandoc
-> IO Pandoc
-processBiblio cslfile abrfile r p
+processBiblio cslStr abrfile r p
= if null r then return p
else do
- csl <- readCSLFile cslfile
+ csl <- parseCSL cslStr
abbrevs <- case abrfile of
Just f -> readJsonAbbrevFile f
Nothing -> return []