From c78cc02abf793539e4bcd6c1037d7007946103ca Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 29 Sep 2012 15:09:04 -0400 Subject: Biblio: csl parameter now a string rather than a filepath. API change. --- src/Text/Pandoc/Biblio.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Text') 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 [] -- cgit v1.2.3