packages feed

pandoc-citeproc 0.1.2 → 0.1.2.1

raw patch · 42 files changed

+15052/−10218 lines, 42 filesdep ~pandoc-typesdep ~yaml

Dependency ranges changed: pandoc-types, yaml

Files

biblio2yaml.hs view
@@ -1,5 +1,7 @@ module Main where import Text.CSL.Input.Bibutils (readBiblioString, BibFormat(..))+import Text.CSL.Reference (Reference(refId))+import Data.List (group, sort) import Data.Char (chr, toLower) import Data.Monoid import Data.Yaml@@ -43,8 +45,14 @@        Nothing  -> do          hPutStrLn stderr $ usageInfo ("Unknown format\n" ++ header) options          exitWith $ ExitFailure 3-       Just f   -> readBiblioString f bibstring >>=+       Just f   -> readBiblioString f bibstring >>= warnDuplicateKeys >>=                      outputYamlBlock . unescapeTags . encode++warnDuplicateKeys :: [Reference] -> IO [Reference]+warnDuplicateKeys refs = mapM_ warnDup dupKeys >> return refs+  where warnDup k = hPutStrLn stderr $ "biblio2yaml: duplicate key " ++ k+        allKeys   = map refId refs+        dupKeys   = [x | (x:_:_) <- group (sort allKeys)]  outputYamlBlock :: B.ByteString -> IO () outputYamlBlock contents = do
pandoc-citeproc.cabal view
@@ -1,5 +1,5 @@ name:               pandoc-citeproc-version:            0.1.2+version:            0.1.2.1 cabal-version:      >= 1.12 synopsis:           Supports using pandoc with citeproc @@ -87,6 +87,29 @@                     tests/chicago-author-date.csl                     tests/ieee.csl                     tests/mhra.csl+                    tests/biblio2yaml/basic.bibtex+                    tests/biblio2yaml/dates.biblatex+                    tests/biblio2yaml/article.biblatex+                    tests/biblio2yaml/book-averroes.biblatex+                    tests/biblio2yaml/book-coleridge.biblatex+                    tests/biblio2yaml/book-title-maintitle-series.biblatex+                    tests/biblio2yaml/book-vazques-de-parga.biblatex+                    tests/biblio2yaml/inbook-title-booktitle-maintitle-series-2.biblatex+                    tests/biblio2yaml/inbook-title-booktitle-maintitle-series.biblatex+                    tests/biblio2yaml/inbook.biblatex+                    tests/biblio2yaml/incollection-2.biblatex+                    tests/biblio2yaml/incollection.biblatex+                    tests/biblio2yaml/inproceedings.biblatex+                    tests/biblio2yaml/manual.biblatex+                    tests/biblio2yaml/online.biblatex+                    tests/biblio2yaml/patent.biblatex+                    tests/biblio2yaml/periodical.biblatex+                    tests/biblio2yaml/quotes.biblatex+                    tests/biblio2yaml/report.biblatex+                    tests/biblio2yaml/strings.biblatex+                    tests/biblio2yaml/thesis.biblatex+                    tests/biblio2yaml/title-and-shorttitle.biblatex+                    tests/biblio2yaml/test-case-conversion.biblatex                     -- documentation                     README.md                     LICENSE@@ -148,7 +171,7 @@     ghc-options:      -funbox-strict-fields -Wall -fno-warn-unused-do-bind     ghc-prof-options: -prof -auto-all     build-depends:    containers, directory, mtl, json, utf8-string,-                      bytestring, filepath, pandoc-types >= 1.12.2.3, tagsoup,+                      bytestring, filepath, pandoc-types >= 1.12.3, tagsoup,                       aeson, text, vector, texmath >= 0.6.4, split,                       yaml >= 0.8, pandoc >= 1.12.0.2 @@ -195,7 +218,7 @@     hs-source-dirs:   .     ghc-options:      -funbox-strict-fields -Wall     ghc-prof-options: -prof -auto-all-    build-depends:    base >= 4, pandoc-citeproc, pandoc-types >= 1.12.2.3, aeson+    build-depends:    base >= 4, pandoc-citeproc, pandoc-types >= 1.12.3, aeson     default-language: Haskell98  executable biblio2yaml@@ -211,7 +234,8 @@   Type:           exitcode-stdio-1.0   Main-Is:        test-pandoc-citeproc.hs   Hs-Source-Dirs: tests-  build-depends:  base >= 4, aeson-pretty, aeson,-                  pandoc-types >= 1.12.2.3, pandoc >= 1.12,-                  bytestring, pandoc-citeproc, process, Diff >= 0.3+  build-depends:  base >= 4, aeson-pretty, aeson, directory,+                  pandoc-types >= 1.12.3, pandoc >= 1.12, filepath,+                  bytestring, pandoc-citeproc, process, Diff >= 0.3,+                  yaml >= 0.8   default-language: Haskell98
src/Text/CSL/Data.hs view
@@ -1,5 +1,21 @@ {-# LANGUAGE CPP #-}-module Text.CSL.Data (getLocale, getDefaultCSL) where+-----------------------------------------------------------------------------+-- |+-- Module      :  Text.CSL.Data+-- Copyright   :  (c) John MacFarlane+-- License     :  BSD-style (see LICENSE)+--+-- Maintainer  :  John MacFarlane <fiddlosopher@gmail.com>+-- Stability   :  unstable+-- Portability :  unportable+--+-----------------------------------------------------------------------------++module Text.CSL.Data+    ( getLocale+    , getDefaultCSL+    , langBase+    ) where  import System.FilePath () import qualified Data.ByteString.Lazy as L
src/Text/CSL/Eval/Date.hs view
@@ -19,6 +19,7 @@ import Control.Monad.State import Data.Char import Data.List+import Data.List.Split import Data.Maybe  import Text.CSL.Eval.Common@@ -77,12 +78,18 @@ formatDate :: EvalMode -> String -> [CslTerm] -> [DatePart] -> [RefDate] -> [Output] formatDate em k tm dp date     | [d]     <- date = concatMap (formatDatePart False d) dp-    | (a:b:_) <- date = return . ODate . concat $ (start a b ++ end a b ++ coda b)+    | (a:b:_) <- date = return . ODate . concat $ doRange a b     | otherwise       = []     where-      start a b = map (formatDatePart False a) . init          . diff a b $ dp-      end   a b = map (formatDatePart True  a) . return . last . diff a b $ dp-      coda    b = map (formatDatePart False b) dp+      splitDate a b = case split (onSublist $ diff a b dp) dp of+                        [x,y,z] -> (x,y,z)+                        _       -> error "error in splitting date ranges"+      doRange   a b = let (x,y,z) = splitDate a b in+                      map (formatDatePart False  a) x +++                      map (formatDatePart False  a) (init y) +++                      map (formatDatePart True   a) [last y] +++                      map (formatDatePart False  b) y +++                      map (formatDatePart False  b) z       diff  a b = filter (flip elem (diffDate a b) . dpName)       diffDate (RefDate ya ma sa da _ _)                (RefDate yb mb sb db _ _) = case () of
src/Text/CSL/Eval/Names.hs view
@@ -36,7 +36,7 @@       sb == "editor" && sa == "translator" = do         aa <- getAgents' sa         ab <- getAgents' sb-        if aa == ab+        if aa /= [] && aa == ab            then modify (\s -> s { edtrans = True }) >>                 evalNames True [sa] nl d            else evalNames True  ns  nl d@@ -328,7 +328,9 @@     | "page"    <- s = checkPlural     | "volume"  <- s = checkPlural     | "ibid"    <- s = format' s p-    | otherwise      = if isRole s then form (\fm' x -> [OLabel x fm']) id s p else format s p+    | isRole       s = do a <- getAgents' s+                          if a /= [] then form (\fm' x -> [OLabel x fm']) id s p else return []+    | otherwise      = format s p     where       isRole = flip elem ["author", "collection-editor", "composer", "container-author"                          ,"director", "editor", "editorial-director", "editortranslator"
src/Text/CSL/Input/Bibtex.hs view
@@ -1,6 +1,21 @@-module Text.CSL.Input.Bibtex ( readBibtexInput, readBibtexInputString )-where+{-# OPTIONS_GHC -fno-warn-unused-do-bind #-}+-----------------------------------------------------------------------------+-- |+-- Module      :  Text.CSL.Input.Bibtex+-- Copyright   :  (c) John MacFarlane+-- License     :  BSD-style (see LICENSE)+--+-- Maintainer  :  John MacFarlane <fiddlosopher@gmail.com>+-- Stability   :  unstable-- Portability :  unportable+--+----------------------------------------------------------------------------- +module Text.CSL.Input.Bibtex+    ( readBibtexInput+    , readBibtexInputString+    )+    where+ import Text.Parsec hiding (optional, (<|>), many) import Control.Applicative import Text.Pandoc@@ -8,7 +23,7 @@                            dropBlanks, split) import Data.List (intercalate) import Data.Maybe-import Data.Char (toLower, isUpper, toUpper, isDigit)+import Data.Char (toLower, isUpper, toUpper, isDigit, isLower, isPunctuation) import Control.Monad import Control.Monad.Reader import System.Environment (getEnvironment)@@ -132,15 +147,9 @@ rawWord :: BibParser String rawWord = many1 alphaNum -ident :: BibParser String-ident = do-  c <- letter-  cs <- many (letter <|> digit <|> char '_')-  return (c:cs)- expandString :: BibParser String expandString = do-  k <- ident+  k <- fieldName   strs <- getState   case lookup k strs of        Just v  -> return v@@ -157,23 +166,33 @@ resolveCrossRefs isBibtex entries =   map (resolveCrossRef isBibtex entries) entries +splitKeys :: String -> [String]+splitKeys = wordsBy (\c -> c == ' ' || c == ',')++getXrefFields :: Bool -> Item -> [Item] -> String -> [(String, String)]+getXrefFields isBibtex baseEntry entries keys = do+  let keys' = splitKeys keys+  xrefEntry <- [e | e <- entries, identifier e `elem` keys']+  (k, v) <- fields xrefEntry+  if k == "crossref" || k == "xdata"+     then do+       xs <- mapM (getXrefFields isBibtex baseEntry entries)+                   (splitKeys v)+       (x, y) <- xs+       return (x, y)+     else do+       k' <- if isBibtex+                then return k+                else transformKey (entryType xrefEntry) (entryType baseEntry) k+       guard $ isNothing $ lookup k' $ fields baseEntry+       return (k',v)+ resolveCrossRef :: Bool -> [Item] -> Item -> Item resolveCrossRef isBibtex entries entry = foldl go entry (fields entry)   where go entry' (key, val) =           if key == "crossref" || key == "xdata"-          then case [e | e <- entries, identifier e == val] of-                    []     -> entry'-                    (e':_)-                     | isBibtex -> entry'{ fields = fields entry' ++-                                      [(k,v) | (k,v) <- fields e',-                                       isNothing (lookup k $ fields entry')]-                                   }-                     | otherwise -> entry'{ fields = fields entry' ++-                                     [(k',v) | (k,v) <- fields e',-                                       k' <- transformKey (entryType e')-                                              (entryType entry') k,-                                      isNothing (lookup k' (fields entry'))]-                                         }+          then entry'{ fields = fields entry +++                                    getXrefFields isBibtex entry entries val }           else entry'  -- transformKey source target key@@ -255,9 +274,44 @@        "software"      -> "computer software"        "datacd"        -> "data CD"        "audiocd"       -> "audio CD"+       "patent"        -> "patent"+       "patentde"      -> "German patent"+       "patenteu"      -> "European patent"+       "patentfr"      -> "French patent"+       "patentuk"      -> "British patent"+       "patentus"      -> "U.S. patent"+       "patreq"        -> "patent request"+       "patreqde"      -> "German patent request"+       "patreqeu"      -> "European patent request"+       "patreqfr"      -> "French patent request"+       "patrequk"      -> "British patent request"+       "patrequs"      -> "U.S. patent request"+       "countryde"     -> "Germany"+       "countryeu"     -> "European Union"+       "countryep"     -> "European Union"+       "countryfr"     -> "France"+       "countryuk"     -> "United Kingdom"+       "countryus"     -> "United States of America"+       "newseries"     -> "new series"+       "oldseries"     -> "old series"        _               -> k resolveKey _ k = resolveKey (Lang "en" "US") k +parseMonth :: String -> String+parseMonth "jan" = "1"+parseMonth "feb" = "2"+parseMonth "mar" = "3"+parseMonth "apr" = "4"+parseMonth "may" = "5"+parseMonth "jun" = "6"+parseMonth "jul" = "7"+parseMonth "aug" = "8"+parseMonth "sep" = "9"+parseMonth "oct" = "10"+parseMonth "nov" = "11"+parseMonth "dec" = "12"+parseMonth x     = x+ type Bib = ReaderT Item Maybe  notFound :: String -> Bib a@@ -285,12 +339,12 @@        Nothing -> notFound f  parseDates :: String -> Maybe [RefDate]-parseDates s = mapM parseDate $ splitOn "/" s+parseDates s = mapM parseDate $ splitWhen (=='/') s  parseDate :: String -> Maybe RefDate parseDate s = do   let (year', month', day') =-        case splitOn "-" s of+        case splitWhen (== '-') s of              [y]     -> (y, "", "")              [y,m]   -> (y, m, "")              [y,m,d] -> (y, m, d)@@ -306,7 +360,7 @@ getOldDates :: String -> Bib [RefDate] getOldDates prefix = do   year' <- getField (prefix ++ "year")-  month' <- getField (prefix ++ "month") <|> return ""+  month' <- (parseMonth <$> getField (prefix ++ "month")) <|> return ""   day' <- getField (prefix ++ "day") <|> return ""   endyear' <- getField (prefix ++ "endyear") <|> return ""   endmonth' <- getField (prefix ++ "endmonth") <|> return ""@@ -336,10 +390,10 @@        Just x  -> return x        Nothing -> notFound f -getAuthorList :: Bool -> String -> Bib [Agent]-getAuthorList useprefix f = do+getAuthorList :: Options -> String -> Bib [Agent]+getAuthorList opts  f = do   fs <- asks fields-  case lookup f fs >>= latexAuthors useprefix of+  case lookup f fs >>= latexAuthors opts of        Just xs -> return xs        Nothing -> notFound f @@ -347,7 +401,7 @@ getLiteralList f = do   fs <- asks fields   case lookup f fs of-       Just x  -> return $ mapMaybe latex $ splitOn " and " x+       Just x  -> latex' x >>= toLiteralList        Nothing -> notFound f  -- separates items with semicolons@@ -357,13 +411,19 @@ splitByAnd :: [Inline] -> [[Inline]] splitByAnd = splitOn [Space, Str "and", Space] -toAuthorList :: Bool -> [Block] -> Maybe [Agent]-toAuthorList useprefix [Para xs] =-  Just $ map (toAuthor useprefix) $ splitByAnd xs-toAuthorList useprefix [Plain xs] = toAuthorList useprefix [Para xs]-toAuthorList _ _ = Nothing+toLiteralList :: (Functor m, MonadPlus m) => [Block] -> m [String]+toLiteralList [Para xs] =+  mapM inlinesToString $ splitByAnd xs+toLiteralList [Plain xs] = toLiteralList [Para xs]+toLiteralList _ = mzero -toAuthor :: Bool -> [Inline] -> Agent+toAuthorList :: MonadPlus m => Options -> [Block] -> m [Agent]+toAuthorList opts [Para xs] =+  return $ map (toAuthor opts) $ splitByAnd xs+toAuthorList opts [Plain xs] = toAuthorList opts [Para xs]+toAuthorList _ _ = mzero++toAuthor :: Options -> [Inline] -> Agent toAuthor _ [Str "others"] =     Agent { givenName       = []           , droppingPart    = ""@@ -385,16 +445,19 @@ -- First von Last -- von Last, First -- von Last, Jr ,First-toAuthor useprefix ils =+toAuthor opts ils =     Agent { givenName       = givens           , droppingPart    = if useprefix then "" else prefix           , nonDroppingPart = if useprefix then prefix else ""           , familyName      = family           , nameSuffix      = suffix           , literal         = ""-          , commaSuffix     = not (null suffix)+          , commaSuffix     = usecomma           }-  where commaParts = map words' $ splitWhen (== Str ",") $ separateCommas ils+  where useprefix = maybe False (== "true") $ lookup "useprefix" opts+        usecomma = maybe False (== "true") $ lookup "juniorcomma" opts+        commaParts = map words' $ splitWhen (== Str ",")+                                $ splitStrWhen (== ',') ils         words' = wordsBy (== Space)         isCapitalized (Str (c:cs) : rest)           | isUpper c = True@@ -426,40 +489,50 @@                                (ws@(_:_),[]) -> (init ws, [last ws])                                (ws, vs)      -> (ws, vs) -separateCommas :: [Inline] -> [Inline]-separateCommas [] = []-separateCommas (Str xs : ys)-  | ',' `elem` xs = map Str ((split . dropBlanks) (whenElt (==',')) xs) ++ separateCommas ys-separateCommas (x : ys) = x : separateCommas ys+splitStrWhen :: (Char -> Bool) -> [Inline] -> [Inline]+splitStrWhen _ [] = []+splitStrWhen p (Str xs : ys)+  | any p xs = map Str ((split . dropBlanks) (whenElt p) xs) ++ splitStrWhen p ys+splitStrWhen p (x : ys) = x : splitStrWhen p ys -latex :: String -> Maybe String-latex s = trim `fmap` blocksToString bs-  where Pandoc _ bs = readLaTeX def s+latex' :: (MonadPlus m, Functor m) => String -> m [Block]+latex' s = return bs+  where Pandoc _ bs = readLaTeX def{readerParseRaw = True} s -latexTitle :: Lang -> String -> Maybe String-latexTitle (Lang l _) s = trim `fmap` blocksToString (processTitle bs)-  where Pandoc _ bs = readLaTeX def s-        processTitle = case l of+latex :: (MonadPlus m, Functor m) => String -> m String+latex s = latex' (trim s) >>= blocksToString++latexTitle :: (MonadPlus m, Functor m) => Lang -> String -> m String+latexTitle (Lang l _) s =+  trim `fmap` (latex' s >>= blocksToString . processTitle)+  where processTitle = case l of                           'e':'n':_ -> unTitlecase                           _         -> id -latexAuthors :: Bool -> String -> Maybe [Agent]-latexAuthors useprefix s = toAuthorList useprefix bs-  where Pandoc _ bs = readLaTeX def s+latexAuthors :: (MonadPlus m, Functor m) => Options -> String -> m [Agent]+latexAuthors opts s = latex' s >>= toAuthorList opts  bib :: Bib Reference -> Item -> Maybe Reference bib m entry = runReaderT m entry  unTitlecase :: [Block] -> [Block]-unTitlecase [Para ils]  = [Para $ untc ils]-unTitlecase [Plain ils] = [Para $ untc ils]+unTitlecase [Para ils]  = [Para $ untc $ splitStrWhen isPunctuation ils]+unTitlecase [Plain ils] = [Para $ untc $ splitStrWhen isPunctuation ils] unTitlecase xs          = xs  untc :: [Inline] -> [Inline] untc [] = [] untc (x:xs) = x : map go xs-  where go (Str ys)     = Str $ map toLower ys+  where go (Str (y:ys)) | isUpper y = Str $ toLower y : ys+        go (Quoted qt ys) = Quoted qt $ map go ys+        go (Emph ys)   = Emph $ map go ys+        go (Strong ys) = Strong $ map go ys+        go (Span _ ys)+          | hasLowercaseWord ys = Span ("",["nocase"],[]) ys         go z            = z+        hasLowercaseWord = any isLowercaseWord+        isLowercaseWord (Str (y:_)) = isLower y+        isLowercaseWord _           = False  toLocale :: String -> String toLocale "english"    = "en-US" -- "en-EN" unavailable in CSL@@ -523,7 +596,18 @@ toLocale "vietnamese" = "vi-VN" toLocale _            = "" -parseOptions :: String -> [(String, String)]+concatWith :: Char -> [String] -> String+concatWith sep xs = foldl go "" xs+  where go :: String -> String -> String+        go accum "" = accum+        go accum s  = case reverse accum of+                           []    -> s+                           (x:_) | x `elem` "!?.,:;" -> accum ++ " " ++ s+                                 | otherwise         -> accum ++ [sep, ' '] ++ s++type Options = [(String, String)]++parseOptions :: String -> Options parseOptions = map breakOpt . splitWhen (==',')   where breakOpt x = case break (=='=') x of                           (w,v) -> (map toLower $ trim w,@@ -535,8 +619,7 @@   et <- asks entryType   guard $ et /= "xdata"   opts <- (parseOptions <$> getRawField "options") <|> return []-  let useprefix = maybe False (=="true") $ lookup "useprefix" opts-  let getAuthorList' = getAuthorList useprefix+  let getAuthorList' = getAuthorList opts   st <- getRawField "entrysubtype" <|> return ""   let (reftype, refgenre) = case et of        "article"@@ -600,13 +683,17 @@        "letters"         -> (PersonalCommunication,"")        "newsarticle"     -> (ArticleNewspaper,"")        _                 -> (NoType,"")-  reftype' <- resolveKey lang <$> getRawField "type" <|> return ""+  reftype' <- resolveKey lang <$> getField "type" <|> return "" +  let isContainer = et `elem` ["book","collection","proceedings","reference",+                     "mvbook","mvcollection","mvproceedings", "mvreference",+                     "suppbook","suppcollection"]+   -- hyphenation:   let defaultHyphenation = case lang of                                 Lang x y -> x ++ "-" ++ y   hyphenation <- (toLocale <$> getRawField "hyphenation")-                <|> return defaultHyphenation+                <|> return ""    -- authors:   author' <- getAuthorList' "author" <|> return []@@ -625,55 +712,56 @@   let isPeriodical = et == "periodical"   let hasVolumes = et `elem`          ["inbook","incollection","inproceedings","bookinbook"]-  let addColon = fmap (": " ++)-  let addPeriod = fmap (". " ++)-  let (la, co) = case splitOn "-" hyphenation of+  let hyphenation' = if null hyphenation+                     then defaultHyphenation+                     else hyphenation+  let (la, co) = case splitWhen (== '-') hyphenation' of                       [x]     -> (x, "")                       (x:y:_) -> (x, y)                       []      -> ("", "")   let getTitle' = getTitle (Lang la co)-  title' <- (if isPeriodical then getTitle' "issuetitle" else getTitle' "title")+  title' <- getTitle' (if isPeriodical then "issuetitle" else "title")            <|> return ""-  subtitle' <- addColon (if isPeriodical-                         then getTitle' "issuesubtitle"-                         else getTitle' "subtitle")+  subtitle' <- getTitle' (if isPeriodical then "issuesubtitle" else "subtitle")               <|> return ""-  titleaddon' <- addPeriod (if isPeriodical-                            then getTitle' "issuetitleaddon"-                            else getTitle' "titleaddon")+  titleaddon' <- getTitle' "titleaddon"                <|> return ""+  volumeTitle' <- (getTitle' "maintitle" >> guard hasVolumes+                    >> getTitle' "booktitle")+                  <|> return ""+  volumeSubtitle' <- (getTitle' "maintitle" >> guard hasVolumes+                      >> getTitle' "booksubtitle")+                     <|> return ""+  volumeTitleAddon' <- (getTitle' "maintitle" >> guard hasVolumes+                                   >> getTitle' "booktitleaddon")+                       <|> return ""   containerTitle' <- (guard isPeriodical >> getField "title")                   <|> getTitle' "maintitle"-                  <|> getTitle' "booktitle"-                  <|> getField "journal"+                  <|> (guard (not isContainer) >>+                       guard (null volumeTitle') >> getTitle' "booktitle")                   <|> getField "journaltitle"-                  <|> (guard isArticle >> getTitle' "series")+                  <|> getField "journal"                   <|> return ""-  containerSubtitle' <- addColon ((guard isPeriodical >> getField "subtitle")+  containerSubtitle' <- (guard isPeriodical >> getField "subtitle")                        <|> getTitle' "mainsubtitle"-                       <|> getTitle' "booksubtitle"-                       <|> getField "journalsubtitle")+                       <|> (guard (not isContainer) >>+                            guard (null volumeSubtitle') >>+                             getTitle' "booksubtitle")+                       <|> getField "journalsubtitle"                        <|> return ""-  containerTitleAddon' <- addPeriod (-                           (guard isPeriodical >> getField "titleaddon")+  containerTitleAddon' <- (guard isPeriodical >> getField "titleaddon")                        <|> getTitle' "maintitleaddon"-                       <|> getTitle' "booktitleaddon")+                       <|> (guard (not isContainer) >>+                            guard (null volumeTitleAddon') >>+                             getTitle' "booktitleaddon")                        <|> return ""   containerTitleShort' <- (guard isPeriodical >> getField "shorttitle")-                        <|> getTitle' "booktitleshort"+                        <|> (guard (not isContainer) >>+                             getTitle' "booktitleshort")                         <|> getField "journaltitleshort"                         <|> getField "shortjournal"                         <|> return ""-  seriesTitle' <- (guard (not isArticle) >> getTitle' "series") <|> return ""-  volumeTitle' <- (getTitle' "maintitle" >> guard hasVolumes-                    >> getTitle' "booktitle")-                  <|> return ""-  volumeSubtitle' <- addColon (getTitle' "maintitle" >> guard hasVolumes-                      >> getTitle' "booksubtitle")-                     <|> return ""-  volumeTitleAddon' <- addPeriod (getTitle' "maintitle" >> guard hasVolumes-                                   >> getTitle' "booktitleaddon")-                       <|> return ""+  seriesTitle' <- resolveKey lang <$> getTitle' "series" <|> return ""   shortTitle' <- getTitle' "shorttitle"                <|> if ':' `elem` title'                    then return (takeWhile (/=':') title')@@ -705,12 +793,14 @@                     else getLiteralList' "origlocation")                   <|> return ""   jurisdiction' <- if et == "patent"-                   then resolveKey lang <$> getLiteralList' "location" <|> return ""+                   then ((intercalate "; " . map (resolveKey lang)) <$>+                           getLiteralList "location") <|> return ""                    else return ""    -- locators   pages' <- getField "pages" <|> return ""   volume' <- getField "volume" <|> return ""+  part' <- getField "part" <|> return ""   volumes' <- getField "volumes" <|> return ""   pagetotal' <- getField "pagetotal" <|> return ""   chapter' <- getField "chapter" <|> return ""@@ -724,8 +814,9 @@                      "inreference", "suppbook","suppcollection"]        then return ("",x,"")        else if isArticle-            then (getField "issue" >>= \y -> return ("","",x ++ ", " ++ y))-               <|> return (x,"","")+            then (getField "issue" >>= \y ->+                                    return ("","",concatWith ',' [x,y]))+               <|> return ("","",x)             else return (x,"","")    -- dates@@ -738,7 +829,8 @@    -- url, doi, isbn, etc.:   url' <- getRawField "url" <|> return ""-  doi' <- getRawField "doi" <|> return ""+  -- the doi: prefix causes citeproc-hs to create a link+  doi' <- (("doi:" ++) <$> getRawField "doi") <|> return ""   isbn' <- getRawField "isbn" <|> return ""   issn' <- getRawField "issn" <|> return ""   callNumber' <- getRawField "library" <|> return ""@@ -758,11 +850,6 @@   pubstate' <- resolveKey lang `fmap`                    getRawField "pubstate" <|> return "" -  let addPeriodSpace "" y = y-      addPeriodSpace x "" = x-      addPeriodSpace x  y = if last x == '.'-                               then x ++ " " ++ y-                               else x ++ ". " ++ y   let convertEnDash = map (\c -> if c == '–' then '-' else c)    return $ emptyReference@@ -788,12 +875,25 @@          -- , container           = undefined -- :: [RefDate]          , originalDate        = origDate'          -- , submitted           = undefined -- :: [RefDate]-         , title               = title' ++ subtitle' ++ titleaddon'+         , title               = concatWith '.' [+                                    concatWith ':' [title', subtitle']+                                  , titleaddon' ]          , titleShort          = shortTitle'          -- , reviewedTitle       = undefined -- :: String-         , containerTitle      = containerTitle' ++ containerSubtitle' ++ containerTitleAddon'-         , collectionTitle     = seriesTitle'-         , volumeTitle         = volumeTitle' ++ volumeSubtitle' ++ volumeTitleAddon'+         , containerTitle      = concatWith '.' [+                                      concatWith ':' [ containerTitle'+                                                     , containerSubtitle']+                                    , containerTitleAddon' ]+                                   ++ if isArticle && not (null seriesTitle')+                                      then if null containerTitle'+                                              then seriesTitle'+                                              else ", " ++ seriesTitle'+                                      else ""+         , collectionTitle     = if isArticle then "" else seriesTitle'+         , volumeTitle         = concatWith '.' [+                                      concatWith ':' [ volumeTitle'+                                                     , volumeSubtitle']+                                    , volumeTitleAddon' ]          , containerTitleShort = containerTitleShort'          , collectionNumber    = collectionNumber'          , originalTitle       = origTitle'@@ -808,7 +908,8 @@          -- , pageFirst           = undefined -- :: String          , numberOfPages       = pagetotal'          , version             = version'-         , volume              = volume'+         , volume              = intercalate "." $ filter (not . null)+                                     [volume',part']          , numberOfVolumes     = volumes'          , issue               = issue'          , chapterNumber       = chapter'@@ -820,7 +921,7 @@          , genre               = if null refgenre                                     then reftype'                                     else refgenre-         , note                = addPeriodSpace note' addendum'+         , note                = concatWith '.' [note', addendum']          , annote              = annotation'          , abstract            = abstract'          , keyword             = keywords'@@ -829,8 +930,6 @@          , doi                 = doi'          , isbn                = isbn'          , issn                = issn'-         , language            = if hyphenation == defaultHyphenation-                                    then ""-                                    else hyphenation+         , language            = hyphenation          , callNumber          = callNumber'          }
src/Text/CSL/Input/Bibutils.hs view
@@ -46,18 +46,19 @@ #ifdef USE_BIBUTILS readBiblioFile f     = case getExt f of-        ".mods"    -> readBiblioFile' f mods_in-        ".bib"     -> readBibtexInput False f-        ".bibtex"  -> readBibtexInput True f-        ".ris"     -> readBiblioFile' f ris_in-        ".enl"     -> readBiblioFile' f endnote_in-        ".xml"     -> readBiblioFile' f endnotexml_in-        ".wos"     -> readBiblioFile' f isi_in-        ".medline" -> readBiblioFile' f medline_in-        ".copac"   -> readBiblioFile' f copac_in-        ".json"    -> readJsonInput f-        ".native"  -> readFile f >>= return . decodeJSON-        _          -> error $ "citeproc: the format of the bibliographic database could not be recognized\n" +++        ".mods"     -> readBiblioFile' f mods_in+        ".bib"      -> readBibtexInput False f+        ".bibtex"   -> readBibtexInput True f+        ".biblatex" -> readBibtexInput False f+        ".ris"      -> readBiblioFile' f ris_in+        ".enl"      -> readBiblioFile' f endnote_in+        ".xml"      -> readBiblioFile' f endnotexml_in+        ".wos"      -> readBiblioFile' f isi_in+        ".medline"  -> readBiblioFile' f medline_in+        ".copac"    -> readBiblioFile' f copac_in+        ".json"     -> readJsonInput f+        ".native"   -> readFile f >>= return . decodeJSON+        _           -> error $ "citeproc: the format of the bibliographic database could not be recognized\n" ++                               "using the file extension."  #else
src/Text/CSL/Input/Pandoc.hs view
@@ -1,9 +1,11 @@ module Text.CSL.Input.Pandoc (blocksToString, inlinesToString) where import Text.Pandoc+import Text.Pandoc.Shared (trim) import Text.TeXMath (texMathToPandoc, DisplayType(..)) import Control.Applicative import Data.List (intercalate)+import Data.Char (isLower) import Data.Monoid (mconcat)  blocksToString :: (Functor m, Monad m) => [Block] -> m String@@ -16,29 +18,51 @@ inlinesToString = fmap mconcat . mapM go   where go (Str xs)         = return xs         go Space            = return " "-        go (Emph xs)        = inTag "i" <$> inlinesToString xs-        go (Strong xs)      = inTag "b" <$> inlinesToString xs-        go (Superscript xs) = inTag "sup" <$> inlinesToString xs-        go (Subscript xs)   = inTag "sub" <$> inlinesToString xs-        go (SmallCaps xs)   = inTag "sc" <$> inlinesToString xs+        go (Emph xs)        = inTag "i" [] <$> inlinesToString xs+        go (Strong xs)      = inTag "b" [] <$> inlinesToString xs+        go (Superscript xs) = inTag "sup" [] <$> inlinesToString xs+        go (Subscript xs)   = inTag "sub" [] <$> inlinesToString xs+        go (SmallCaps xs)   = inTag "sc" [] <$> inlinesToString xs         go (Code _ xs)      = return xs         go (Link xs _)      = inlinesToString xs         go (Image xs _)     = inlinesToString xs-        go (RawInline f xs) | f == Format "citeproc"-                            = return xs-        go (Span _ xs)      = inlinesToString xs+        go (RawInline f xs)+          | f == Format "citeproc" = return xs+          | f == Format "latex"    = inlinesToString $ parseRawLaTeX xs+        go (Span ("",[],[]) xs) = inlinesToString xs+        go (Span (_,classes,_) xs) =+           inTag "span" [("class",unwords classes)] <$> inlinesToString xs         go (Note _)         = return ""         go (LineBreak)      = return " "-        go (Math _ xs)      = either (\_ -> return $ surround '$' '$' xs)-                              inlinesToString-                              $ texMathToPandoc DisplayInline xs+        go (Math _ xs)      = do+           let mbs = texMathToPandoc DisplayInline xs >>= inlinesToString+           case mbs of+                Right s@(c:_)+                 | isLower c  -> return $ inTag "span" [("class","nocase")] s+                Right s       -> return s+                Left _        -> return $ surround '$' '$' xs         go (Cite _ ils)     = inlinesToString ils         go (Quoted SingleQuote xs) = surround '‘' '’' <$> inlinesToString xs         go (Quoted DoubleQuote xs) = surround '“' '”' <$> inlinesToString xs         go _                = return "" +parseRawLaTeX :: String -> [Inline]+parseRawLaTeX ('\\':xs) =+  case readLaTeX def{readerParseRaw = True} contents of+       Pandoc _ [Para ys]  -> f command ys+       Pandoc _ [Plain ys] -> f command ys+       _                   -> []+   where (command', contents') = break (=='{') xs+         command  = trim command'+         contents = drop 1 $ reverse $ drop 1 $ reverse contents'+         f "mkbibquote" ils = [Quoted DoubleQuote ils]+         f _            ils = [Span nullAttr ils]+parseRawLaTeX _ = []+ surround :: Char -> Char -> String -> String surround beg end s = beg : s ++ [end] -inTag :: String -> String -> String-inTag t s = "<" ++ t ++ ">" ++ s ++ "</" ++ takeWhile (/=' ') t ++ ">"+inTag :: String -> [(String, String)] -> String -> String+inTag t attr s = "<" ++ t ++ concatMap fmtAttr attr +++  ">" ++ s ++ "</" ++ takeWhile (/=' ') t ++ ">"+  where fmtAttr (k,v) = " " ++ k ++ "=\"" ++ v ++ "\""
src/Text/CSL/Output/Pandoc.hs view
@@ -25,7 +25,7 @@     , endWithPunct     ) where -import Data.Char ( toUpper, toLower )+import Data.Char ( toUpper, toLower, isPunctuation ) import Data.Maybe ( fromMaybe )  import Text.CSL.Style@@ -114,14 +114,17 @@           | Link s r <- i = Link (map (setCase f) s) r           | otherwise     = setCase f i -      toCap        s = if s /= []       then toUpper (head s) : tail s else []-      toTitleCap   s = if isShortWord s then toUpper (head s) : tail s else s-      isShortWord  s = not $ s `elem` ["a","an","and","as","at","but","by","down","for","from"+      toCap       [] = []+      toCap   (x:xs)+          | isPunctuation x = x : toCap xs+          | otherwise       = toUpper x : xs+      toTitleCap   s = if isShortWord s then s else toCap s+      isShortWord  s = s `elem` ["a","an","and","as","at","but","by","down","for","from"                                       ,"in","into","nor","of","on","onto","or","over","so"                                       ,"the","till","to","up","via","with","yet"]       text_case _ [] = []       text_case fm a@(i:is)-          | noCase fm                         = [escape "nocase" a]+          | noCase fm                         = [Span ("",["nocase"],[]) a]           | "lowercase"        <- textCase fm = map (setCase' $ map toLower) a           | "uppercase"        <- textCase fm = map (setCase' $ map toUpper) a           | "capitalize-all"   <- textCase fm = map (setCase  $ unwords . map toCap      . words) a
src/Text/CSL/Pandoc.hs view
@@ -38,11 +38,16 @@       cits_map   = M.fromList $ zip grps (citations result)       biblioList = map (renderPandoc' style) (bibliography result)       Pandoc m b = bottomUp mvPunct . deNote .-                       topDown (processCite style cits_map) $ doc'+                     topDown (processCite style cits_map) $ doc'       (bs, lastb) = case reverse b of                          x@(Header _ _ _) : xs -> (reverse xs, [x])                          _                     -> (b,  [])-  in  Pandoc m $ bs ++ [Div ("",["references"],[]) (lastb ++ biblioList)]+  in  Pandoc m $ bottomUp (concatMap removeNocaseSpans)+               $ bs ++ [Div ("",["references"],[]) (lastb ++ biblioList)]++removeNocaseSpans :: Inline -> [Inline]+removeNocaseSpans (Span ("",["nocase"],[]) xs) = xs+removeNocaseSpans x = [x]  -- | Process a 'Pandoc' document by adding citations formatted -- according to a CSL style.  The style filename is derived from
src/Text/CSL/Proc/Disamb.hs view
@@ -68,10 +68,8 @@       needYSuff = filter_        snd  $ zip duplics withNames        newNames :: [CiteData]-      newNames  = if hasNamesOpt-                  then disambAddNames givenNames $ needNames ++-                       if hasYSuffOpt && givenNames == NoGiven then [] else needYSuff-                  else map (\cd -> cd {disambed = collision cd} ) $ needNames ++ needYSuff+      newNames  = when_ (hasNamesOpt || hasGNameOpt) $ disambAddNames givenNames $ needNames +++                  if hasYSuffOpt && givenNames == NoGiven then [] else needYSuff        newGName :: [NameData]       newGName  = when_ hasGNameOpt $ concatMap disambAddGivenNames nameDupls@@ -90,8 +88,7 @@        yearSuffs = when_ hasYSuffOpt . generateYearSuffix bibs . query getYearSuffixes $ withYearS -      addGNames = if hasGNameOpt then newGName else []-      addNames  = proc (updateContrib givenNames newNames addGNames)+      addNames  = proc (updateContrib givenNames newNames newGName)       processed = if hasYSuffOpt                   then proc (updateYearSuffixes yearSuffs) .                        addNames $ withYearS@@ -131,16 +128,16 @@       addGName = map (\(c,n) -> c { nameDataSolved = if null n then nameCollision c else head n }) disSolved  updateContrib :: GiveNameDisambiguation -> [CiteData] -> [NameData] -> Output -> Output-updateContrib ByCite [] _ o = o updateContrib g c n o     | OContrib k r s d dd <- o = case filter (key &&& sameAs >>> uncurry (:) >>> elem k) c of-                                  x:_  -> OContrib k r (processGNames $ disambed x) [] dd-                                  _ -> if null c-                                       then OContrib k r (processGNames s) d dd-                                       else o+                                  x:_ | clean (disambData x) == clean (d:dd) ->+                                          OContrib k r (map processGNames $ disambed x) [] dd+                                  _ | null c, AllNames <- g -> OContrib k r (map processGNames s) d dd+                                    | otherwise             -> o     | otherwise = o     where-      processGNames = if g /= NoGiven then proc' (updateOName n) else id+      clean         = if g == NoGiven then proc rmNameHash . proc rmGivenNames else id+      processGNames = if g /= NoGiven then updateOName n else id  updateOName :: [NameData] -> Output -> Output updateOName n o@@ -204,8 +201,7 @@                                       then rmExtras xs                                       else Output (rmExtras x) f : rmExtras xs     | OContrib _ _ x _ _ : xs <- os = OContrib [] [] x [] [] : rmExtras xs-    | OYear        y _ f : xs <- os = OYear      y  [] f : rmExtras xs-    | OYearSuf   s _ _ f : xs <- os = OYearSuf s [] [] f : rmExtras xs+    | OYear        y _ f : xs <- os = OYear y [] f : rmExtras xs     | ODel             _ : xs <- os = rmExtras xs     | OLoc           _ _ : xs <- os = rmExtras xs     | x                  : xs <- os = x : rmExtras xs@@ -229,7 +225,7 @@                                             else c {key     = fst y                                                    ,citYear = snd y}       contribsQ o-          | OContrib k _ s d dd <- o = [CD k s d (d:dd) [] [] []]+          | OContrib k _ _ d dd <- o = [CD k [out] d (d:dd) [] [] []]           | otherwise                = []  getYears :: Output -> [(String,String)]@@ -263,7 +259,7 @@  generateYearSuffix :: [Reference] -> [(String, [Output])] -> [(String,String)] generateYearSuffix refs-    = flip zip suffs . concat .+    = concatMap (flip zip suffs) .       -- sort clashing cites using their position in the sorted bibliography       getFst . map sort' . map (filter ((/=) 0 . snd)) . map (map getP) .       -- group clashing cites@@ -284,7 +280,7 @@       setYS c o           | OYearSuf _ k _ f <- o = OYearSuf [] k (getCollision k c) f           | otherwise             = o-      collide = if b then collision else disambYS+      collide = if b then disambed else disambYS       getCollision k c = case find ((==) k . key) c of                            Just x -> if collide x == []                                      then [OStr (citYear x) emptyFormatting]
src/Text/CSL/Reference.hs view
@@ -94,15 +94,14 @@   parseJSON _ = mzero  instance ToJSON Agent where-  toJSON agent = object' [+  toJSON agent = object' $ [       "given" .= givenName agent     , "dropping-particle" .= droppingPart agent     , "non-dropping-particle" .= nonDroppingPart agent     , "family" .= familyName agent     , "suffix" .= nameSuffix agent     , "literal" .= literal agent-    , "comma-suffix" .= commaSuffix agent-    ]+    ] ++ ["comma-suffix" .= commaSuffix agent | not (null (nameSuffix agent))]  instance FromJSON [Agent] where   parseJSON (Array xs) = mapM parseJSON $ V.toList xs@@ -660,7 +659,6 @@         isempty (_, String t) = T.null t         isempty ("first-reference-note-number", Aeson.Number n) = n == 0         isempty ("citation-number", Aeson.Number n) = n == 0-        isempty ("comma-suffix", Bool b) = not b         isempty (_, _)        = False  safeRead :: (Monad m, Read a) => String -> m a
+ tests/biblio2yaml/article.biblatex view
@@ -0,0 +1,134 @@+@comment{+    - contains:+        - an article entry with just the required fields+        - an article entry with required and all optional fields+    - notes:+        - year, month to be ignored if date is present+        - journal to be ignored if journaltitle is present+        - editortype, editoratype, editorbtype, editorctype, pubstate,+series contain keys which, unless corresponding CSL terms exist, require+locale-specific expansion+    - limitations:+        - annotator, commentator, eid, eprint, eprintclass, eprinttype,+issuetitle, issuesubtitle, language, origlanguage have no matching+counterparts in CSL+        - for editor, editora, editorb, editorc (plus editortype,+editoratype, editorbtype, editorctype) only a subset, editor and director,+has matching counterparts in CSL+    - kludges:+        - note + addendum -> CSL note+        - number + issue -> CSL issue+        - handling of titleaddon+        - handling of (journal) series+            - done properly, this should be mapped to some CSL variable+(version? edition? collection-number?), CSL styles would have to be adapted+            - slightly better kludge would map integer to ordinal + "ser."+("3" -> "3rd ser."); localization keys "newseries" -> "new ser.",+"oldseries" -> "old ser."; and print all other values as is -- but still+wouldn't fit all styles or locales.+    }++@article{article-req,+    Author = {Author, Ann},+    Date = {2013-07-29},+    Hyphenation = {english},+    Journaltitle = {The Journaltitle},+    Title = {An Article Entry with Just the Required Fields}}++@article{article-opt,+    Addendum = {The Addendum},+    Annotator = {Annotator, A.},+    Author = {Author, Jr., Ann A.},+    Commentator = {Commentator, C.},+    Date = {2008-12-31},+    Doi = {10.1086/520976},+    Editor = {Editor, Edward},+    Editora = {Editor, A.},+    Editorb = {Editor, B.},+    Editorc = {Editor, C.},+    Eid = {eid},+    Eprint = {eprint},+    Eprintclass = {eprintclass},+    Eprinttype = {eprinttype},+    Hyphenation = {english},+    Issn = {issn},+    Issue = {issue},+    Issuesubtitle = {The Issuesubtitle},+    Issuetitle = {The Issuetitle},+    Journalsubtitle = {The Journalsubtitle},+    Journaltitle = {The Journaltitle},+    Journal = {The Journal},+    Language = {language},+    Month = {08},+    Year = {2007},+    Note = {The Note},+    Number = {number},+    Origlanguage = {origlanguage},+    Pages = {pages},+    Pubstate = {inpress},+    Series = {newseries},+    Subtitle = {The Subtitle},+    Title = {An Article Entry with the Required and All Optional Fields},+    Titleaddon = {The Titleaddon},+    Translator = {Translator, Ted},+    Url = {http://foo.bar.baz/},+    Urldate = {2013-07-29},+    Version = {version},+    Volume = {volume},+}++---+references:+- title: An article entry with just the required fields+  id: article-req+  issued:+    day: 29+    month: 07+    year: 2013+  author:+    given:+    - Ann+    family: Author+  container-title: The Journaltitle+  type: article-journal+  language: en-US+- issn: issn+  status: in press+  issue: number, issue+  page: pages+  note: The Note. The Addendum+  title: ! 'An article entry with the required and all optional fields: The subtitle.+    The titleaddon'+  volume: volume+  id: article-opt+  issued:+    day: 31+    month: 12+    year: 2008+  author:+    suffix: Jr.+    given:+    - Ann+    - A.+    comma-suffix: false+    family: Author+  accessed:+    day: 29+    month: 07+    year: 2013+  version: version+  container-title: ! 'The Journaltitle: The Journalsubtitle, new series'+  editor:+    given:+    - Edward+    family: Editor+  translator:+    given:+    - Ted+    family: Translator+  url: http://foo.bar.baz/+  type: article-journal+  doi: doi:10.1086/520976+  language: en-US+...+
+ tests/biblio2yaml/basic.bibtex view
@@ -0,0 +1,72 @@+@Book{item1,+author="John Doe",+title="First Book",+year="2005",+address="Cambridge",+publisher="Cambridge University Press"+}++@Article{item2,+author="John Doe",+title="Article",+year="2006",+journal="Journal of Generic Studies",+volume="6",+pages="33-34"+}++@InCollection{пункт3,+author="John Doe and Jenny Roe",+title="Why Water Is Wet",+booktitle="Third Book",+editor="Sam Smith",+publisher="Oxford University Press",+address="Oxford",+year="2007"+}++---+references:+- publisher-place: Cambridge+  author:+    family: Doe+    given:+    - John+  id: item1+  issued:+    year: 2005+  title: First book+  type: book+  publisher: Cambridge University Press+- volume: 6+  page: 33-34+  container-title: Journal of Generic Studies+  author:+    family: Doe+    given:+    - John+  id: item2+  issued:+    year: 2006+  title: Article+  type: article-journal+- publisher-place: Oxford+  container-title: Third book+  author:+  - family: Doe+    given:+    - John+  - family: Roe+    given:+    - Jenny+  id: "пункт3"+  issued:+    year: 2007+  title: Why water is wet+  type: chapter+  publisher: Oxford University Press+  editor:+    family: Smith+    given:+    - Sam+...
+ tests/biblio2yaml/book-averroes.biblatex view
@@ -0,0 +1,128 @@+@comment{+adapted from http://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/examples/biblatex-examples.bib++@book{averroes/bland,+	Annotation = {A \texttt{book} entry with a \texttt{series} and a \texttt{number}. Note the concatenation of the \texttt{editor} and \texttt{translator} fields as well as the \texttt{indextitle} field},+	Author = {Averroes},+	Date = 1982,+	Editor = {Bland, Kalman P.},+	Hyphenation = {american},+	Indextitle = {Epistle on the Possibility of Conjunction, The},+	Keywords = {primary},+	Location = {New York},+	Number = 7,+	Publisher = {Jewish Theological Seminary of America},+	Series = {{Moreshet: Studies in Jewish History, Literature and Thought}},+	Shorttitle = {Possibility of Conjunction},+	Title = {The Epistle on the Possibility of Conjunction with the Active Intellect by {Ibn Rushd} with the Commentary of {Moses Narboni}},+	Translator = {Bland, Kalman P.}}++@book{averroes/hannes,+	Annotation = {An annotated edition. Note the concatenation of the \texttt{editor}, \texttt{translator}, and \texttt{annotator} fields. Also note the \texttt{shorttitle}, \texttt{indextitle}, \texttt{sorttitle}, and \texttt{indexsorttitle} fields},+	Annotator = {Hannes, Ludwig},+	Author = {Averroes},+	Date = 1892,+	Editor = {Hannes, Ludwig},+	Hyphenation = {german},+	Indexsorttitle = {Uber die Moglichkeit der Conjunktion},+	Indextitle = {Über die Möglichkeit der Conjunktion},+	Keywords = {primary},+	Location = {Halle an der Saale},+	Publisher = {C.~A. Kaemmerer},+	Shorttitle = {Über die Möglichkeit der Conjunktion},+	Sorttitle = {Uber die Moglichkeit der Conjunktion},+	Title = {Des Averroës Abhandlung: \mkbibquote{Über die Möglichkeit der Conjunktion} oder \mkbibquote{Über den materiellen Intellekt}},+	Translator = {Hannes, Ludwig}}++@book{averroes/hercz,+	Annotation = {A \texttt{book} entry. Note the concatenation of the \texttt{editor} and \texttt{translator} fields as well as the \texttt{indextitle} and \texttt{indexsorttitle} fields},+	Author = {Averroes},+	Date = 1869,+	Editor = {Hercz, J.},+	Hyphenation = {german},+	Indexsorttitle = {Drei Abhandlungen uber die Conjunction},+	Indextitle = {Drei Abhandlungen über die Conjunction},+	Keywords = {primary},+	Location = {Berlin},+	Publisher = {S.~Hermann},+	Shorttitle = {Drei Abhandlungen},+	Subtitle = {Von Averroes (Vater und Sohn), aus dem Arabischen übersetzt von Samuel Ibn Tibbon},+	Title = {Drei Abhandlungen über die Conjunction des separaten Intellects mit dem Menschen},+	Translator = {Hercz, J.}}+---+references:+- title-short: Possibility of conjunction+  annote: A book entry with a series and a number. Note the concatenation of the editor+    and translator fields as well as the indextitle field+  keyword: primary+  title: The epistle on the possibility of conjunction with the active intellect by+    Ibn Rushd with the commentary of Moses Narboni+  id: averroes/bland+  issued:+    year: 1982+  author:+    family: Averroes+  editor:+    given:+    - Kalman+    - P.+    family: Bland+  translator:+    given:+    - Kalman+    - P.+    family: Bland+  publisher: Jewish Theological Seminary of America+  collection-title: ! 'Moreshet: Studies in Jewish History, Literature and Thought'+  type: book+  publisher-place: New York+  collection-number: 7+  language: en-US+- title-short: "Über die Möglichkeit der Conjunktion"+  annote: An annotated edition. Note the concatenation of the editor, translator,+    and annotator fields. Also note the shorttitle, indextitle, sorttitle, and indexsorttitle+    fields+  keyword: primary+  title: "Des Averroës Abhandlung: “Über die Möglichkeit der Conjunktion” oder “Über den materiellen Intellekt”"+  id: averroes/hannes+  issued:+    year: 1892+  author:+    family: Averroes+  editor:+    given:+    - Ludwig+    family: Hannes+  translator:+    given:+    - Ludwig+    family: Hannes+  publisher: "C. A. Kaemmerer"+  type: book+  publisher-place: Halle an der Saale+  language: de-DE+- title-short: Drei Abhandlungen+  annote: A book entry. Note the concatenation of the editor and translator fields+    as well as the indextitle and indexsorttitle fields+  keyword: primary+  title: "Drei Abhandlungen über die Conjunction des separaten Intellects mit+    dem Menschen: Von Averroes (Vater und Sohn), aus dem Arabischen übersetzt von+    Samuel Ibn Tibbon"+  id: averroes/hercz+  issued:+    year: 1869+  author:+    family: Averroes+  editor:+    given:+    - J.+    family: Hercz+  translator:+    given:+    - J.+    family: Hercz+  publisher: "S. Hermann"+  type: book+  publisher-place: Berlin+  language: de-DE+...
+ tests/biblio2yaml/book-coleridge.biblatex view
@@ -0,0 +1,58 @@+@comment{adapted from http://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/examples/biblatex-examples.bib++TODO (as a stopgap):+Combine biblatex “volume = 7” and “part = 2” to CSL “volume: 7.2”++}++@book{coleridge,+	Annotation = {One (partial) volume of a multivolume book. This is a \texttt{book} entry with a \texttt{volume} and a \texttt{part} field which explicitly refers to the second (physical) part of the seventh (logical) volume. Also note the \texttt{series} and \texttt{number} fields},+	Author = {Coleridge, Samuel Taylor},+	Date = 1983,+	Editor = {Coburn, Kathleen and Engell, James and Bate, W. Jackson},+	Hyphenation = {british},+	Indextitle = {Biographia literaria},+	Location = {London},+	Maintitle = {The collected works of {Samuel Taylor Coleridge}},+	Number = 75,+	Part = 2,+	Publisher = {Routledge {and} Kegan Paul},+	Series = {Bollingen Series},+	Shorttitle = {Biographia literaria},+	Title = {Biographia literaria, or {Biographical} sketches of my literary life and opinions},+	Volume = 7}+---+references:+- title-short: Biographia literaria+  annote: One (partial) volume of a multivolume book. This is a book entry with a+    volume and a part field which explicitly refers to the second (physical) part+    of the seventh (logical) volume. Also note the series and number fields+  title: Biographia literaria, or Biographical sketches of my literary life and opinions+  volume: 7.2+  id: coleridge+  issued:+    year: 1983+  author:+    given:+    - Samuel+    - Taylor+    family: Coleridge+  container-title: The collected works of Samuel Taylor Coleridge+  editor:+  - given:+    - Kathleen+    family: Coburn+  - given:+    - James+    family: Engell+  - given:+    - W.+    - Jackson+    family: Bate+  publisher: Routledge and Kegan Paul+  collection-title: Bollingen series+  type: book+  publisher-place: London+  collection-number: 75+  language: en-GB+...
+ tests/biblio2yaml/book-title-maintitle-series.biblatex view
@@ -0,0 +1,34 @@+@book{item1,+	Author = {Author, Al},+	Date = {2013},+	Hyphenation = {french},+	Location = {Location},+	Mainsubtitle = {Mainsubtitle},+	Maintitle = {Maintitle},+	Maintitleaddon = {Maintitleaddon},+	Number = {3},+	Publisher = {Publisher},+	Series = {Series},+	Subtitle = {Subtitle},+	Title = {Title of the Book},+	Titleaddon = {Titleaddon},+}++---+references:+- title: ! 'Title of the Book: Subtitle. Titleaddon'+  id: item1+  issued:+    year: 2013+  author:+    given:+    - Al+    family: Author+  container-title: ! 'Maintitle: Mainsubtitle. Maintitleaddon'+  publisher: Publisher+  collection-title: Series+  type: book+  publisher-place: Location+  collection-number: 3+  language: fr-FR+...
+ tests/biblio2yaml/book-vazques-de-parga.biblatex view
@@ -0,0 +1,46 @@+@comment{excerpted from http://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/examples/biblatex-examples.bib++Note handling of Author = {Vázques{ de }Parga, Luis}++}++@book{vazques-de-parga,+	Annotation = {A multivolume book cited as a whole. This is a \texttt{book} entry with \texttt{volumes}, \texttt{note}, \texttt{sorttitle}, and \texttt{indextitle} fields},+	Author = {Vázques{ de }Parga, Luis and Lacarra, José María and Uría Ríu, Juan},+	Date = 1993,+	Hyphenation = {spanish},+	Indextitle = {Peregrinaciones a Santiago de Compostela, Las},+	Location = {Pamplona},+	Note = {Ed. facs. de la realizada en 1948--49},+	Publisher = {Iberdrola},+	Shorttitle = {Peregrinaciones},+	Sorttitle = {Peregrinaciones a Santiago de Compostela},+	Title = {Las Peregrinaciones a Santiago de Compostela},+	Volumes = 3}+---+references:+- title-short: Peregrinaciones+  annote: A multivolume book cited as a whole. This is a book entry with volumes,+    note, sorttitle, and indextitle fields+  note: "Ed. facs. de la realizada en 1948–49"+  title: Las Peregrinaciones a Santiago de Compostela+  id: vazques-de-parga+  issued:+    year: 1993+  author:+  - given:+    - Luis+    family: "V\xE1zques de Parga"+  - given:+    - ! "Jos\xE9"+    - ! "Mar\xEDa"+    family: Lacarra+  - given:+    - Juan+    family: "Ur\xEDa R\xEDu"+  number-of-volumes: 3+  publisher: Iberdrola+  type: book+  publisher-place: Pamplona+  language: es-ES+...
+ tests/biblio2yaml/dates.biblatex view
@@ -0,0 +1,248 @@+@comment{+    - Dates+    - Not included in tests:+        - malformed dates and date ranges+        - literal dates ("13th century"; not supported by biblatex)+        - seasons (would have to come from parsing the issue field)+        - uncertain dates (use "doubtfuldate" from biblatex-apa?)+        - dates with single-digit day or month (not supported by biblatex)+        - negative dates (not supported by biblatex)+    - Note: biblatex supports years < 1000 but only if padded with leading zeros+    - TODO:+        - either biblio2yaml or, probably better, citeproc should strip leading zeros+         from days and months (CSL can add leading zeros to its output, but not remove+         them when they are in its input data)+}++@article{year-month-old,+    Author = {Author, Al},+    Journal = {Journal},+    Month = aug,+    Title = {Year and Month, bibtex style, supported by biblatex for backwards compatibility},+    Year = {1999}}++@article{year-month-new,+    Author = {Author, Al},+    Journal = {Journal},+    Month = {08},+    Title = {Year and Month, biblatex style; note that biblatex does not have a "day" field},+    Year = {1999}}++@article{dates,+    Author = {Author, Al},+    Date = {2012-12-13},+    Eventdate = {2011-10-03},+    Journal = {Journal},+    Month = may,+    Origdate = {1888-10-01},+    Title = {Dates, default biblatex style; year, month to be ignored if date exists},+    Urldate = {1999-05-23},+    Year = {9999}}++@article{date-ranges-different-years,+    Author = {Author, Al},+    Date = {1999-10-14/2010-01-23},+    Eventdate = {1999-12/2000-01},+    Journal = {Journal},+    Origdate = {1888-01-02/1913-12-13},+    Title = {Date ranges; different years},+    Urldate = {2012-10-12/2013-01-31}}++@article{date-ranges-same-year,+    Author = {Author, Al},+    Date = {1999-10-14/1999-10-15},+    Eventdate = {1999-10/1999-11},+    Journal = {Journal},+    Origdate = {1888-01-02/1888-12-13},+    Title = {Date ranges; same year},+    Urldate = {2012-10-31/2012-11-01}}++@article{date-ranges-open,+    Author = {Author, Al},+    Date = {1999-10-14/},+    Eventdate = {1999-10/},+    Journal = {Journal},+    Origdate = {1888-01-02/},+    Title = {Date ranges, open-ended},+    Urldate = {2012-10-31/}}++@article{dates-very-old,+    Author = {Author, Al},+    Date = {0712-12-13},+    Eventdate = {0311-10-03},+    Journal = {Journal},+    Month = may,+    Origdate = {0088-10-01},+    Title = {Dates, year less than 1000},+    Urldate = {0999-12-14}}++---+references:+- title: Year and month, bibtex style, supported by biblatex for backwards compatibility+  id: year-month-old+  issued:+    month: 08+    year: 1999+  author:+    given:+    - Al+    family: Author+  container-title: Journal+  type: article-journal+- title: Year and month, biblatex style; note that biblatex does not have a "day"+    field+  id: year-month-new+  issued:+    month: 08+    year: 1999+  author:+    given:+    - Al+    family: Author+  container-title: Journal+  type: article-journal+- original-date:+    day: 01+    month: 10+    year: 1888+  title: Dates, default biblatex style; year, month to be ignored if date exists+  event-date:+    day: 03+    month: 10+    year: 2011+  id: dates+  issued:+    day: 13+    month: 12+    year: 2012+  author:+    given:+    - Al+    family: Author+  accessed:+    day: 23+    month: 05+    year: 1999+  container-title: Journal+  type: article-journal+- original-date:+  - day: 02+    month: 01+    year: 1888+  - day: 13+    month: 12+    year: 1913+  title: Date ranges; different years+  event-date:+  - month: 12+    year: 1999+  - month: 01+    year: 2000+  id: date-ranges-different-years+  issued:+  - day: 14+    month: 10+    year: 1999+  - day: 23+    month: 01+    year: 2010+  author:+    given:+    - Al+    family: Author+  accessed:+  - day: 12+    month: 10+    year: 2012+  - day: 31+    month: 01+    year: 2013+  container-title: Journal+  type: article-journal+- original-date:+  - day: 02+    month: 01+    year: 1888+  - day: 13+    month: 12+    year: 1888+  title: Date ranges; same year+  event-date:+  - month: 10+    year: 1999+  - month: 11+    year: 1999+  id: date-ranges-same-year+  issued:+  - day: 14+    month: 10+    year: 1999+  - day: 15+    month: 10+    year: 1999+  author:+    given:+    - Al+    family: Author+  accessed:+  - day: 31+    month: 10+    year: 2012+  - day: 01+    month: 11+    year: 2012+  container-title: Journal+  type: article-journal+- original-date:+  - day: 02+    month: 01+    year: 1888+  - {}+  title: Date ranges, open-ended+  event-date:+  - month: 10+    year: 1999+  - {}+  id: date-ranges-open+  issued:+  - day: 14+    month: 10+    year: 1999+  - {}+  author:+    given:+    - Al+    family: Author+  accessed:+  - day: 31+    month: 10+    year: 2012+  - {}+  container-title: Journal+  type: article-journal+- original-date:+    day: 01+    month: 10+    year: 0088+  title: Dates, year less than 1000+  event-date:+    day: 03+    month: 10+    year: 0311+  id: dates-very-old+  issued:+    day: 13+    month: 12+    year: 0712+  author:+    given:+    - Al+    family: Author+  accessed:+    day: 14+    month: 12+    year: 0999+  container-title: Journal+  type: article-journal+...+
+ tests/biblio2yaml/inbook-title-booktitle-maintitle-series-2.biblatex view
@@ -0,0 +1,44 @@+@inbook{item1,+	Author = {Author, Al},+	Bookauthor = {Bookauthor, Bob},+	Booksubtitle = {Booksubtitle},+	Booktitle = {Booktitle},+	Booktitleaddon = {Booktitleaddon},+	Date = {2011},+	Hyphenation = {french},+	Location = {Location},+	Mainsubtitle = {Mainsubtitle},+	Maintitle = {Maintitle},+	Maintitleaddon = {Maintitleaddon},+	Number = {3},+	Publisher = {Publisher},+	Series = {Series},+	Subtitle = {Subtitle},+	Title = {Title of the "inbook" Entry},+	Titleaddon = {Titleaddon},+	Volume = {4}}++---+references:+- title: ! 'Title of the "inbook" Entry: Subtitle. Titleaddon'+  volume: 4+  id: item1+  issued:+    year: 2011+  author:+    given:+    - Al+    family: Author+  container-title: ! 'Maintitle: Mainsubtitle. Maintitleaddon'+  container-author:+    given:+    - Bob+    family: Bookauthor+  publisher: Publisher+  collection-title: Series+  type: chapter+  publisher-place: Location+  collection-number: 3+  volume-title: ! 'Booktitle: Booksubtitle. Booktitleaddon'+  language: fr-FR+...
+ tests/biblio2yaml/inbook-title-booktitle-maintitle-series.biblatex view
@@ -0,0 +1,39 @@+@inbook{item1,+	Author = {Author, Al},+	Booksubtitle = {Booksubtitle},+	Booktitle = {Booktitle},+	Booktitleaddon = {Booktitleaddon},+	Date = {2011},+	Hyphenation = {french},+	Location = {Location},+	Mainsubtitle = {Mainsubtitle},+	Maintitle = {Maintitle},+	Maintitleaddon = {Maintitleaddon},+	Number = {3},+	Publisher = {Publisher},+	Series = {Series},+	Subtitle = {Subtitle},+	Title = {Title of the "@inbook" Entry},+	Titleaddon = {Titleaddon},+	Volume = {4}}++---+references:+- title: ! 'Title of the "@inbook" Entry: Subtitle. Titleaddon'+  id: item1+  type: chapter+  issued:+    year: 2011+  author:+    given:+    - Al+    family: Author+  volume: 4+  volume-title: ! 'Booktitle: Booksubtitle. Booktitleaddon'+  container-title: ! 'Maintitle: Mainsubtitle. Maintitleaddon'+  collection-title: Series+  collection-number: 3+  publisher: Publisher+  publisher-place: Location+  language: fr-FR+...
+ tests/biblio2yaml/inbook.biblatex view
@@ -0,0 +1,148 @@+@comment{+adapted from http://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/examples/biblatex-examples.bib++TODO / citeproc: in biblatex "inbook" entries, citeproc should suppress bookauthor = CSL container-author if identical with author. -- See annotation in kant:kpv.+}++@string{dtv = {Deutscher Taschenbuch-Verlag}}++@inbook{kant:kpv,+	Annotation = {An edition of Kant's \emph{Collected Works}, volume five. This is an \texttt{inbook} entry which explicitly refers to the \emph{Critique of Practical Reason} only, not to the entire fifth volume. Note the \texttt{author} and \texttt{bookauthor} fields in the database file. By default, the \texttt{bookauthor} is omitted if the values of the \texttt{author} and \texttt{bookauthor} fields are identical},+	Author = {Kant, Immanuel},+	Bookauthor = {Kant, Immanuel},+	Booktitle = {Kritik der praktischen Vernunft. Kritik der Urtheilskraft},+	Date = 1968,+	Hyphenation = {german},+	Location = {Berlin},+	Maintitle = {Kants Werke. Akademie Textausgabe},+	Pages = {1-163},+	Publisher = {Walter de Gruyter},+	Shorthand = {KpV},+	Shorttitle = {Kritik der praktischen Vernunft},+	Title = {Kritik der praktischen Vernunft},+	Volume = 5}++@inbook{kant:ku,+	Annotation = {An edition of Kant's \emph{Collected Works}, volume five. This is an \texttt{inbook} entry which explicitly refers to the \emph{Critique of Judgment} only, not to the entire fifth volume},+	Author = {Kant, Immanuel},+	Bookauthor = {Kant, Immanuel},+	Booktitle = {Kritik der praktischen Vernunft. Kritik der Urtheilskraft},+	Date = 1968,+	Hyphenation = {german},+	Location = {Berlin},+	Maintitle = {Kants Werke. Akademie Textausgabe},+	Pages = {165-485},+	Publisher = {Walter de Gruyter},+	Shorthand = {KU},+	Title = {Kritik der Urtheilskraft},+	Volume = 5}++@inbook{nietzsche:historie,+	Annotation = {A single essay from the critical edition of Nietzsche's works. This \texttt{inbook} entry explicitly refers to an essay found in the first volume. Note the \texttt{title}, \texttt{booktitle}, and \texttt{maintitle} fields. Also note the \texttt{sorttitle} and \texttt{sortyear} fields. We want this entry to be listed after the entry referring to the entire first volume},+	Author = {Nietzsche, Friedrich},+	Bookauthor = {Nietzsche, Friedrich},+	Booktitle = {Die Geburt der Tragödie. Unzeitgemäße Betrachtungen I--IV. Nachgelassene Schriften 1870--1973},+	Date = 1988,+	Editor = {Colli, Giorgio and Montinari, Mazzino},+	Hyphenation = {german},+	Indexsorttitle = {Vom Nutzen und Nachtheil der Historie fur das Leben},+	Indextitle = {Vom Nutzen und Nachtheil der Historie für das Leben},+	Location = {München and Berlin and New York},+	Mainsubtitle = {Kritische Studienausgabe},+	Maintitle = {Sämtliche Werke},+	Pages = {243-334},+	Publisher = dtv # { and Walter de Gruyter},+	Shorttitle = {Vom Nutzen und Nachtheil der Historie},+	Sorttitle = {Werke-01-243},+	Sortyear = {1988-2},+	Subtitle = {Vom Nutzen und Nachtheil der Historie für das Leben},+	Title = {Unzeitgemässe Betrachtungen. Zweites Stück},+	Volume = 1}++---+references:+- title-short: Kritik der praktischen Vernunft+  annote: "An edition of Kant’s <i>Collected Works</i>, volume five. This is+    an inbook entry which explicitly refers to the <i>Critique of Practical Reason</i>+    only, not to the entire fifth volume. Note the author and bookauthor fields in+    the database file. By default, the bookauthor is omitted if the values of the+    author and bookauthor fields are identical"+  page: 1-163+  title: Kritik der praktischen Vernunft+  volume: 5+  id: kant:kpv+  issued:+    year: 1968+  author:+    given:+    - Immanuel+    family: Kant+  container-title: Kants Werke. Akademie Textausgabe+  container-author:+    given:+    - Immanuel+    family: Kant+  publisher: Walter de Gruyter+  type: chapter+  publisher-place: Berlin+  volume-title: Kritik der praktischen Vernunft. Kritik der Urtheilskraft+  language: de-DE+- annote: "An edition of Kant’s <i>Collected Works</i>, volume five. This is+    an inbook entry which explicitly refers to the <i>Critique of Judgment</i> only,+    not to the entire fifth volume"+  page: 165-485+  title: Kritik der Urtheilskraft+  volume: 5+  id: kant:ku+  issued:+    year: 1968+  author:+    given:+    - Immanuel+    family: Kant+  container-title: Kants Werke. Akademie Textausgabe+  container-author:+    given:+    - Immanuel+    family: Kant+  publisher: Walter de Gruyter+  type: chapter+  publisher-place: Berlin+  volume-title: Kritik der praktischen Vernunft. Kritik der Urtheilskraft+  language: de-DE+- title-short: Vom Nutzen und Nachtheil der Historie+  annote: "A single essay from the critical edition of Nietzsche’s works. This+    inbook entry explicitly refers to an essay found in the first volume. Note the+    title, booktitle, and maintitle fields. Also note the sorttitle and sortyear fields.+    We want this entry to be listed after the entry referring to the entire first+    volume"+  page: 243-334+  title: "Unzeitgemässe Betrachtungen. Zweites Stück: Vom Nutzen und Nachtheil+    der Historie für das Leben"+  volume: 1+  id: nietzsche:historie+  issued:+    year: 1988+  author:+    given:+    - Friedrich+    family: Nietzsche+  container-title: "Sämtliche Werke: Kritische Studienausgabe"+  container-author:+    given:+    - Friedrich+    family: Nietzsche+  editor:+  - given:+    - Giorgio+    family: Colli+  - given:+    - Mazzino+    family: Montinari+  publisher: Deutscher Taschenbuch-Verlag; Walter de Gruyter+  type: chapter+  publisher-place: "München; Berlin; New York"+  volume-title: "Die Geburt der Tragödie. Unzeitgemäße Betrachtungen I–IV.+    Nachgelassene Schriften 1870–1973"+  language: de-DE+...
+ tests/biblio2yaml/incollection-2.biblatex view
@@ -0,0 +1,97 @@++@comment{adapted from http://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/examples/biblatex-examples.bib}+++@string{hup = {Harvard University Press}}+++@incollection{westfahl:space,+	Annotation = {A cross-referenced article from a \texttt{collection}. This is an \texttt{incollection} entry with a \texttt{crossref} field. Note the \texttt{subtitle} and \texttt{indextitle} fields},+	Author = {Westfahl, Gary},+	Crossref = {westfahl:frontier},+	Hyphenation = {american},+	Indextitle = {True Frontier, The},+	Pages = {55-65},+	Subtitle = {Confronting and Avoiding the Realities of Space in {American} Science Fiction Films},+	Title = {The True Frontier}}++@incollection{gaonkar:in,+	Author = {Gaonkar, Dilip Parameshwar},+	Booktitle = {Alternative Modernities},+	Date = 2001,+	Editor = {Gaonkar, Dilip Parameshwar},+	Isbn = {0-822-32714-7},+	Location = {Durham and London},+	Pages = {1-23},+	Publisher = {Duke University Press},+	Title = {On Alternative Modernities}}++@collection{westfahl:frontier,+	Annotation = {This is a \texttt{collection} entry. Note the format of the \texttt{location} field as well as the \texttt{subtitle} and \texttt{booksubtitle} fields},+	Booksubtitle = {The Frontier Theme in Science Fiction},+	Booktitle = {Space and Beyond},+	Date = 2000,+	Editor = {Westfahl, Gary},+	Hyphenation = {american},+	Location = {Westport, Conn. and London},+	Publisher = {Greenwood},+	Subtitle = {The Frontier Theme in Science Fiction},+	Title = {Space and Beyond}}+---+references:+- annote: A cross-referenced article from a collection. This is an incollection entry+    with a crossref field. Note the subtitle and indextitle fields+  page: 55-65+  title: ! 'The true frontier: Confronting and avoiding the realities of space in+    American science fiction films'+  id: westfahl:space+  issued:+    year: 2000+  author:+    given:+    - Gary+    family: Westfahl+  container-title: ! 'Space and beyond: The frontier theme in science fiction'+  editor:+    given:+    - Gary+    family: Westfahl+  publisher: Greenwood+  type: chapter+  publisher-place: Westport, Conn.; London+  language: en-US+- page: 1-23+  title: On alternative modernities+  id: gaonkar:in+  issued:+    year: 2001+  author:+    given:+    - Dilip+    - Parameshwar+    family: Gaonkar+  container-title: Alternative modernities+  editor:+    given:+    - Dilip+    - Parameshwar+    family: Gaonkar+  publisher: Duke University Press+  isbn: 0-822-32714-7+  type: chapter+  publisher-place: Durham; London+- annote: This is a collection entry. Note the format of the location field as well+    as the subtitle and booksubtitle fields+  title: ! 'Space and beyond: The frontier theme in science fiction'+  id: westfahl:frontier+  issued:+    year: 2000+  editor:+    given:+    - Gary+    family: Westfahl+  publisher: Greenwood+  type: book+  publisher-place: Westport, Conn.; London+  language: en-US+...
+ tests/biblio2yaml/incollection.biblatex view
@@ -0,0 +1,130 @@+@comment{adapted from http://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/examples/biblatex-examples.bib}++@string{hup = {Harvard University Press}}++@incollection{brandt,+	Annotation = {An \texttt{incollection} entry with a \texttt{series} and a \texttt{number}. Note the format of the printed name and compare the \texttt{useprefix} option in the \texttt{options} field as well as \texttt{vangennep}. Also note the \texttt{indextitle, and \texttt{indexsorttitle} fields}},+	Author = {von Brandt, Ahasver and Hoffmann, Erich},+	Booktitle = {Europa im Hoch- und Spätmittelalter},+	Date = 1987,+	Editor = {Seibt, Ferdinand},+	Hyphenation = {german},+	Indexsorttitle = {Nordischen Lander von der Mitte des 11. Jahrhunderts bis 1448},+	Indextitle = {Nordischen Länder von der Mitte des 11.~Jahrhunderts bis 1448, Die},+	Location = {Stuttgart},+	Number = 2,+	Options = {useprefix=false},+	Pages = {884-917},+	Publisher = {Klett-Cotta},+	Series = {Handbuch der europäischen Geschichte},+	Shorttitle = {Die nordischen Länder},+	Title = {Die nordischen Länder von der Mitte des 11.~Jahrhunderts bis 1448}}++@incollection{hyman,+	Annotation = {An \texttt{incollection} entry with a \texttt{series} and \texttt{number} field},+	Author = {Hyman, Arthur},+	Booktitle = {Studies in {Aristotle}},+	Date = 1981,+	Editor = {O'Meara, Dominic J.},+	Hyphenation = {american},+	Indextitle = {Aristotle's Theory of the Intellect},+	Keywords = {secondary},+	Location = {Washington, D.C.},+	Number = 9,+	Pages = {161-191},+	Publisher = {The Catholic University of America Press},+	Series = {Studies in Philosophy and the History of Philosophy},+	Shorttitle = {Aristotle's Theory of the Intellect},+	Title = {Aristotle's Theory of the Intellect and its Interpretation by {Averroes}}}++@incollection{pines,+	Annotation = {A typical \texttt{incollection} entry. Note the \texttt{indextitle} field},+	Author = {Pines, Shlomo},+	Booktitle = {Studies in Medieval {Jewish} History and Literature},+	Date = 1979,+	Editor = {Twersky, Isadore},+	Hyphenation = {american},+	Indextitle = {Limitations of Human Knowledge According to Al-Farabi, ibn Bajja, and Maimonides, The},+	Keywords = {secondary},+	Location = {Cambridge, Mass.},+	Pages = {82-109},+	Publisher = hup,+	Shorttitle = {Limitations of Human Knowledge},+	Title = {The Limitations of Human Knowledge According to {Al-Farabi}, {ibn Bajja}, and {Maimonides}}}++---+references:+- title-short: Die nordischen Länder+  annote: An incollection entry with a series and a number. Note the format of the+    printed name and compare the useprefix option in the options field as well as+    vangennep. Also note the indextitle, and indexsorttitle fields+  page: 884-917+  title: "Die nordischen Länder von der Mitte des 11. Jahrhunderts bis 1448"+  id: brandt+  issued:+    year: 1987+  author:+  - given:+    - Ahasver+    dropping-particle: von+    family: Brandt+  - given:+    - Erich+    family: Hoffmann+  container-title: "Europa im Hoch- und Spätmittelalter"+  editor:+    given:+    - Ferdinand+    family: Seibt+  publisher: Klett-Cotta+  collection-title: "Handbuch der europäischen Geschichte"+  type: chapter+  publisher-place: Stuttgart+  collection-number: 2+  language: de-DE+- title-short: "Aristotle’s theory of the intellect"+  annote: An incollection entry with a series and number field+  keyword: secondary+  page: 161-191+  title: "Aristotle’s theory of the intellect and its interpretation by Averroes"+  id: hyman+  issued:+    year: 1981+  author:+    given:+    - Arthur+    family: Hyman+  container-title: Studies in Aristotle+  editor:+    given:+    - Dominic+    - J.+    family: "O’Meara"+  publisher: The Catholic University of America Press+  collection-title: Studies in philosophy and the history of philosophy+  type: chapter+  publisher-place: Washington, D.C.+  collection-number: 9+  language: en-US+- title-short: Limitations of human knowledge+  annote: A typical incollection entry. Note the indextitle field+  keyword: secondary+  page: 82-109+  title: 'The limitations of human knowledge according to Al-Farabi, <span class="nocase">ibn Bajja</span>, and Maimonides'+  id: pines+  issued:+    year: 1979+  author:+    given:+    - Shlomo+    family: Pines+  container-title: Studies in medieval Jewish history and literature+  editor:+    given:+    - Isadore+    family: Twersky+  publisher: Harvard University Press+  type: chapter+  publisher-place: Cambridge, Mass.+  language: en-US+...
+ tests/biblio2yaml/inproceedings.biblatex view
@@ -0,0 +1,98 @@+@comment{adapted from http://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/examples/biblatex-examples.bib}++@string{cup = {Cambridge University Press}}++@inproceedings{moraux,+	Annotation = {This is a typical \texttt{inproceedings} entry. Note the \texttt{booksubtitle}, \texttt{shorttitle}, \texttt{indextitle}, and \texttt{indexsorttitle} fields. Also note the \texttt{eventdate} field.},+	Author = {Moraux, Paul},+	Booktitle = {Aristotle on Mind and the Senses},+	Booktitleaddon = {Proceedings of the Seventh Symposium Aristotelicum},+	Date = 1979,+	Editor = {Lloyd, G. E. R. and Owen, G. E. L.},+	Eventdate = 1975,+	Hyphenation = {french},+	Indexsorttitle = {De Anima dans la tradition grecque},+	Indextitle = {\emph{De Anima} dans la tradition grècque, Le},+	Keywords = {secondary},+	Location = {Cambridge},+	Pages = {281-324},+	Publisher = cup,+	Shorttitle = {\emph{De Anima} dans la tradition grècque},+	Subtitle = {Quelques aspects de l'interpretation du traité, de Theophraste à Themistius},+	Title = {Le \emph{De Anima} dans la tradition grècque}}++@inproceedings{salam,+	Author = {Salam, Abdus},+	Booksubtitle = {Relativistic groups and analyticity},+	Booktitle = {Elementary particle theory},+	Booktitleaddon = {Proceedings of the Eighth {Nobel} Symposium},+	Date = 1968,+	Editor = {Svartholm, Nils},+	Eventdate = {1968-05-19/1968-05-25},+	Location = {Stockholm},+	Pages = {367-377},+	Publisher = {Almquist \& Wiksell},+	Title = {Weak and Electromagnetic Interactions},+	Venue = {Aspenäsgarden, Lerum}}+---+references:+- title-short: "<i>De Anima</i> dans la tradition grècque"+  annote: This is a typical inproceedings entry. Note the booksubtitle, shorttitle,+    indextitle, and indexsorttitle fields. Also note the eventdate field.+  keyword: secondary+  page: 281-324+  title: "Le <i>De Anima</i> dans la tradition grècque: Quelques aspects de l’interpretation+    du traité, de Theophraste à Themistius"+  event-date:+    year: 1975+  id: moraux+  issued:+    year: 1979+  author:+    given:+    - Paul+    family: Moraux+  container-title: Aristotle on Mind and the Senses. Proceedings of the Seventh Symposium+    Aristotelicum+  editor:+  - given:+    - G.+    - E.+    - R.+    family: Lloyd+  - given:+    - G.+    - E.+    - L.+    family: Owen+  publisher: Cambridge University Press+  type: paper-conference+  publisher-place: Cambridge+  language: fr-FR+- page: 367-377+  title: Weak and electromagnetic interactions+  event-date:+  - day: 19+    month: 05+    year: 1968+  - day: 25+    month: 05+    year: 1968+  id: salam+  issued:+    year: 1968+  author:+    given:+    - Abdus+    family: Salam+  container-title: ! 'Elementary particle theory: Relativistic groups and analyticity.+    Proceedings of the eighth Nobel symposium'+  editor:+    given:+    - Nils+    family: Svartholm+  publisher: Almquist & Wiksell+  type: paper-conference+  publisher-place: Stockholm+  event-place: Aspenäsgarden, Lerum+...
+ tests/biblio2yaml/manual.biblatex view
@@ -0,0 +1,44 @@+@comment{adapted from http://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/examples/biblatex-examples.bib}++@Manual{cms,+  title        = {The {Chicago} Manual of Style},+  date         = 2003,+  subtitle     = {The Essential Guide for Writers, Editors, and Publishers},+  edition      = 15,+  publisher    = {University of Chicago Press},+  location     = {Chicago, Ill.},+  isbn         = {0-226-10403-6},+  label        = {CMS},+  hyphenation  = {american},+  sorttitle    = {Chicago Manual of Style},+  indextitle   = {Chicago Manual of Style, The},+  shorttitle   = {Chicago Manual of Style},+  annotation   = {This is a \texttt{manual} entry without an \texttt{author} or+                  \texttt{editor}. Note the \texttt{label} field in the database+                  file which is provided for author-year citation styles. Also+                  note the \texttt{sorttitle} and \texttt{indextitle} fields. By+                  default, all entries without an \texttt{author} or+                  \texttt{editor} are alphabetized by \texttt{title} but we want+                  this entry to be alphabetized under \enquote*{C} rather than+                  \enquote*{T}. There's also an \texttt{isbn} field},+}+---+references:+- title-short: Chicago manual of style+  annote: "This is a manual entry without an author or editor. Note the label field+    in the database file which is provided for author-year citation styles. Also note+    the sorttitle and indextitle fields. By default, all entries without an author+    or editor are alphabetized by title but we want this entry to be alphabetized+    under “C” rather than “T”. There’s also an isbn field"+  title: ! 'The Chicago manual of style: The essential guide for writers, editors,+    and publishers'+  id: cms+  issued:+    year: 2003+  edition: 15+  publisher: University of Chicago Press+  isbn: 0-226-10403-6+  type: book+  publisher-place: Chicago, Ill.+  language: en-US+...
+ tests/biblio2yaml/online.biblatex view
@@ -0,0 +1,65 @@+@comment{adapted from http://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/examples/biblatex-examples.bib}++@online{markey,+	Annotation = {An \texttt{online} entry for a tutorial. Note the format of the \texttt{date} field (\texttt{yyyy-mm-dd}) in the database file.},+	Author = {Markey, Nicolas},+	Date = {2005-10-16},+	Hyphenation = {american},+	Sorttitle = {Tame the Beast},+	Subtitle = {The {B} to {X} of {BibTeX}},+	Title = {Tame the {BeaST}},+	Url = {http://tug.ctan.org/tex-archive/info/bibtex/tamethebeast/ttb_en.pdf},+	Urldate = {2006-10-01},+	Version = {1.3},+}++@online{CTAN,+	Annotation = {This is an \texttt{online} entry. The \textsc{url}, which is given in the \texttt{url} field, is transformed into a clickable link if \texttt{hyperref} support has been enabled. Note the format of the \texttt{urldate} field (\texttt{yyyy-mm-dd}) in the database file. Also note the \texttt{label} field which may be used as a fallback by citation styles which need an \texttt{author} and\slash or a \texttt{year}},+	Date = 2006,+	Hyphenation = {american},+	Label = {CTAN},+	Subtitle = {The {Comprehensive TeX Archive Network}},+	Title = {{CTAN}},+	Url = {http://www.ctan.org},+	Urldate = {2006-10-01},+}++---+references:+- annote: An online entry for a tutorial. Note the format of the date field (yyyy-mm-dd)+    in the database file.+  title: ! 'Tame the BeaST: The B to X of BibTeX'+  id: markey+  issued:+    day: 16+    month: 10+    year: 2005+  author:+    given:+    - Nicolas+    family: Markey+  accessed:+    day: 01+    month: 10+    year: 2006+  version: 1.3+  url: http://tug.ctan.org/tex-archive/info/bibtex/tamethebeast/ttb_en.pdf+  type: webpage+  language: en-US+- annote: This is an online entry. The <sc>url</sc>, which is given in the url field,+    is transformed into a clickable link if hyperref support has been enabled. Note+    the format of the urldate field (yyyy-mm-dd) in the database file. Also note the+    label field which may be used as a fallback by citation styles which need an author+    and/or a year+  title: ! 'CTAN: The Comprehensive TeX Archive Network'+  id: CTAN+  issued:+    year: 2006+  accessed:+    day: 01+    month: 10+    year: 2006+  url: http://www.ctan.org+  type: webpage+  language: en-US+...
+ tests/biblio2yaml/patent.biblatex view
@@ -0,0 +1,181 @@+@comment{adapted from http://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/examples/biblatex-examples.bib++TODO: Is there a CSL counterpart for the biblatex field "holder"?}+++@patent{almendro,+	Annotation = {This is a \texttt{patent} entry with a \texttt{location} field. The number is given in the \texttt{number} field. Note the format of the \texttt{location} field in the database file. Compare \texttt{laufenberg}, \texttt{sorace}, and \texttt{kowalik}},+	Author = {Almendro, José L. and Martín, Jacinto and Sánchez, Alberto and Nozal, Fernando},+	Date = 1998,+	Hyphenation = {german},+	Location = {countryfr and countryuk and countryde},+	Number = {EU-29702195U},+	Title = {Elektromagnetisches Signalhorn}}++@patent{kowalik,+	Annotation = {This is a \texttt{patent} entry for a French patent request with a full date. The number is given in the \texttt{number} field. Note the format of the \texttt{type} and \texttt{date} fields in the database file. Compare \texttt{almendro}, \texttt{laufenberg}, and \texttt{sorace}},+	Author = {Kowalik, F. and Isard, M.},+	Date = {1995-01-11},+	Hyphenation = {french},+	Indextitle = {Estimateur d'un défaut de fonctionnement},+	Number = 9500261,+	Title = {Estimateur d'un défaut de fonctionnement d'un modulateur en quadrature et étage de modulation l'utilisant},+	Type = {patreqfr}}++@patent{laufenberg,+	Annotation = {This is a \texttt{patent} entry with a \texttt{holder} field. Note the format of the \texttt{type} and \texttt{location} fields in the database file. Compare \texttt{almendro}, \texttt{sorace}, and \texttt{kowalik}},+	Author = {Laufenberg, Xaver and Eynius, Dominique and Suelzle, Helmut and Usbeck, Stephan and Spaeth, Matthias and Neuser-Hoffmann, Miriam and Myrzik, Christian and Schmid, Manfred and Nietfeld, Franz and Thiel, Alexander and Braun, Harald and Ebner, Norbert},+	Date = {2006-09-13},+	File = {http://v3.espacenet.com/textdoc?IDX=EP1700367},+	Holder = {{Robert Bosch GmbH} and {Daimler Chrysler AG} and {Bayerische Motoren Werke AG}},+	Hyphenation = {german},+	Number = 1700367,+	Title = {Elektrische Einrichtung und Betriebsverfahren},+	Type = {patenteu},+	Abstract = {The invention relates to an electric device comprising a+                  generator, in particular for use in the vehicle electric+                  system of a motor vehicle and a controller for controlling the+                  generator voltage. The device is equipped with a control zone,+                  in which the voltage is controlled and zones, in which the+                  torque is controlled. The invention also relates to methods+                  for operating a device of this type.}}++@patent{sorace,+	Annotation = {This is a \texttt{patent} entry with a \texttt{holder} field. Note the format of the \texttt{type} and \texttt{date} fields in the database file. Compare \texttt{almendro}, \texttt{laufenberg}, and \texttt{kowalik}},+	Author = {Sorace, Ronald E. and Reinhardt, Victor S. and Vaughn, Steven A.},+	Date = {1997-09-16},+	Date-Modified = {2013-10-16 13:44:15 +0000},+	Holder = {{Hughes Aircraft Company}},+	Hyphenation = {american},+	Number = 5668842,+	Title = {High-Speed Digital-to-{RF} Converter},+	Type = {patentus}}++---+references:+- annote: This is a patent entry with a location field. The number is given in the+    number field. Note the format of the location field in the database file. Compare+    laufenberg, sorace, and kowalik+  title: Elektromagnetisches Signalhorn+  id: almendro+  issued:+    year: 1998+  author:+  - given:+    - José+    - L.+    family: Almendro+  - given:+    - Jacinto+    family: Martín+  - given:+    - Alberto+    family: Sánchez+  - given:+    - Fernando+    family: Nozal+  number: EU-29702195U+  type: patent+  jurisdiction: France; United Kingdom; Germany+  language: de-DE+- annote: This is a patent entry for a French patent request with a full date. The+    number is given in the number field. Note the format of the type and date fields+    in the database file. Compare almendro, laufenberg, and sorace+  genre: French patent request+  title: "Estimateur d’un défaut de fonctionnement d’un modulateur+    en quadrature et étage de modulation l’utilisant"+  id: kowalik+  issued:+    day: 11+    month: 01+    year: 1995+  author:+  - given:+    - F.+    family: Kowalik+  - given:+    - M.+    family: Isard+  number: 9500261+  type: patent+  language: fr-FR+- annote: This is a patent entry with a holder field. Note the format of the type+    and location fields in the database file. Compare almendro, sorace, and kowalik+  genre: European patent+  title: Elektrische Einrichtung und Betriebsverfahren+  id: laufenberg+  issued:+    day: 13+    month: 09+    year: 2006+  author:+  - given:+    - Xaver+    family: Laufenberg+  - given:+    - Dominique+    family: Eynius+  - given:+    - Helmut+    family: Suelzle+  - given:+    - Stephan+    family: Usbeck+  - given:+    - Matthias+    family: Spaeth+  - given:+    - Miriam+    family: Neuser-Hoffmann+  - given:+    - Christian+    family: Myrzik+  - given:+    - Manfred+    family: Schmid+  - given:+    - Franz+    family: Nietfeld+  - given:+    - Alexander+    family: Thiel+  - given:+    - Harald+    family: Braun+  - given:+    - Norbert+    family: Ebner+  number: 1700367+  type: patent+  abstract: The invention relates to an electric device comprising a generator, in+    particular for use in the vehicle electric system of a motor vehicle and a controller+    for controlling the generator voltage. The device is equipped with a control zone,+    in which the voltage is controlled and zones, in which the torque is controlled.+    The invention also relates to methods for operating a device of this type.+  language: de-DE+- annote: This is a patent entry with a holder field. Note the format of the type+    and date fields in the database file. Compare almendro, laufenberg, and kowalik+  genre: U.S. patent+  title: High-speed digital-to-RF converter+  id: sorace+  issued:+    day: 16+    month: 09+    year: 1997+  author:+  - given:+    - Ronald+    - E.+    family: Sorace+  - given:+    - Victor+    - S.+    family: Reinhardt+  - given:+    - Steven+    - A.+    family: Vaughn+  number: 5668842+  type: patent+  language: en-US+...
+ tests/biblio2yaml/periodical.biblatex view
@@ -0,0 +1,24 @@+@comment{excerpt from http://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/examples/biblatex-examples.bib++@periodical{jcg,+	Annotation = {This is a \texttt{periodical} entry with an \texttt{issn} field.},+	Issn = {0097-8493},+	Issuetitle = {Semantic {3D} Media and Content},+	Number = 4,+	Title = {Computers and Graphics},+	Volume = 35,+	Year = 2011}++---+references:+- annote: This is a periodical entry with an issn field.+  issn: 0097-8493+  issue: 4+  title: Semantic 3D media and content+  volume: 35+  id: jcg+  issued:+    year: 2011+  container-title: Computers and Graphics+  type: article-journal+...
+ tests/biblio2yaml/quotes.biblatex view
@@ -0,0 +1,39 @@+@comment{excerpt from http://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/examples/biblatex-examples.bib++\mkbibquote{} should be replaced by a matching set of quotation marks that can be used by citeproc for quote substitution and flipflopping. English smart double quotation marks seem best, as they cannot be confused with apostrophes.++\enquote{}, \enquote*{} should be replaced by a matching set of quotation marks, too: “foo”, ‘bar’.+}++@string{pup = {Princeton University Press}}++@book{nussbaum,+	Annotation = {A \texttt{book} entry. Note the \texttt{sorttitle} and \texttt{indexsorttitle} fields and the markup of the quotes in the database file},+	Author = {Nussbaum, Martha},+	Date = 1978,+	Hyphenation = {american},+	Indexsorttitle = {Aristotle's De Motu Animalium},+	Keywords = {secondary},+	Location = {Princeton},+	Publisher = pup,+	Sorttitle = {Aristotle's De Motu Animalium},+	Title = {Aristotle's \mkbibquote{De Motu Animalium}}}++---+references:+- annote: A book entry. Note the sorttitle and indexsorttitle fields and the markup+    of the quotes in the database file+  keyword: secondary+  title: "Aristotle’s “De Motu Animalium”"+  id: nussbaum+  issued:+    year: 1978+  author:+    given:+    - Martha+    family: Nussbaum+  publisher: Princeton University Press+  type: book+  publisher-place: Princeton+  language: en-US+...
+ tests/biblio2yaml/report.biblatex view
@@ -0,0 +1,115 @@+@comment{excerpt from http://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/examples/biblatex-examples.bib++TODO: Where to map "file" field?+}++@report{chiu,+	Annotation = {This is a \texttt{report} entry for a research report. Note the format of the \texttt{type} field in the database file which uses a localization key. The number of the report is given in the \texttt{number} field. Also note the \texttt{sorttitle} and \texttt{indextitle} fields},+	Author = {Chiu, Willy W. and Chow, We Min},+	Date = 1978,+	Hyphenation = {american},+	Indextitle = {Hybrid Hierarchical Model, A},+	Institution = {IBM},+	Number = {RC-6947},+	Sorttitle = {Hybrid Hierarchical Model of a Multiple Virtual Storage (MVS) Operating System},+	Title = {A Hybrid Hierarchical Model of a {Multiple Virtual Storage} ({MVS}) Operating System},+	Type = {resreport}}++@report{padhye,+	Annotation = {This is a \texttt{report} entry for a technical report. Note the format of the \texttt{type} field in the database file which uses a localization key. The number of the report is given in the \texttt{number} field. Also note the \texttt{sorttitle} and \texttt{indextitle} fields},+	Author = {Padhye, Jitendra and Firoiu, Victor and Towsley, Don},+	Date = 1999,+	File = {ftp://gaia.cs.umass.edu/pub/Padhey99-markov.ps},+	Hyphenation = {american},+	Indextitle = {Stochastic Model of TCP Reno Congestion Avoidance and Control, A},+	Institution = {University of Massachusetts},+	Location = {Amherst, Mass.},+	Number = {99-02},+	Sorttitle = {A Stochastic Model of TCP Reno Congestion Avoidance and Control},+	Title = {A Stochastic Model of {TCP Reno} Congestion Avoidance and Control},+	Type = {techreport},+	Abstract = {The steady state performance of a bulk transfer TCP flow+                  (i.e. a flow with a large amount of data to send, such as FTP+                  transfers) may be characterized by three quantities. The first+                  is the send rate, which is the amount of data sent by the+                  sender in unit time. The second is the throughput, which is+                  the amount of data received by the receiver in unit time. Note+                  that the throughput will always be less than or equal to the+                  send rate due to losses. Finally, the number of non-duplicate+                  packets received by the receiver in unit time gives us the+                  goodput of the connection. The goodput is always less than or+                  equal to the throughput, since the receiver may receive two+                  copies of the same packet due to retransmissions by the+                  sender. In a previous paper, we presented a simple model for+                  predicting the steady state send rate of a bulk transfer TCP+                  flow as a function of loss rate and round trip time. In this+                  paper, we extend that work in two ways. First, we analyze the+                  performance of bulk transfer TCP flows using more precise,+                  stochastic analysis. Second, we build upon the previous+                  analysis to provide both an approximate formula as well as a+                  more accurate stochastic model for the steady state throughput+                  of a bulk transfer TCP flow.}}+---+references:+- annote: This is a report entry for a research report. Note the format of the type+    field in the database file which uses a localization key. The number of the report+    is given in the number field. Also note the sorttitle and indextitle fields+  genre: research report+  title: A hybrid hierarchical model of a Multiple Virtual Storage (MVS) operating+    system+  id: chiu+  issued:+    year: 1978+  author:+  - given:+    - Willy+    - W.+    family: Chiu+  - given:+    - We+    - Min+    family: Chow+  publisher: IBM+  number: RC-6947+  type: report+  language: en-US+- annote: This is a report entry for a technical report. Note the format of the type+    field in the database file which uses a localization key. The number of the report+    is given in the number field. Also note the sorttitle and indextitle fields+  genre: technical report+  title: A stochastic model of TCP Reno congestion avoidance and control+  id: padhye+  issued:+    year: 1999+  author:+  - given:+    - Jitendra+    family: Padhye+  - given:+    - Victor+    family: Firoiu+  - given:+    - Don+    family: Towsley+  publisher: University of Massachusetts+  number: 99-02+  type: report+  publisher-place: Amherst, Mass.+  abstract: The steady state performance of a bulk transfer TCP flow (i.e. a flow+    with a large amount of data to send, such as FTP transfers) may be characterized+    by three quantities. The first is the send rate, which is the amount of data sent+    by the sender in unit time. The second is the throughput, which is the amount+    of data received by the receiver in unit time. Note that the throughput will always+    be less than or equal to the send rate due to losses. Finally, the number of non-duplicate+    packets received by the receiver in unit time gives us the goodput of the connection.+    The goodput is always less than or equal to the throughput, since the receiver+    may receive two copies of the same packet due to retransmissions by the sender.+    In a previous paper, we presented a simple model for predicting the steady state+    send rate of a bulk transfer TCP flow as a function of loss rate and round trip+    time. In this paper, we extend that work in two ways. First, we analyze the performance+    of bulk transfer TCP flows using more precise, stochastic analysis. Second, we+    build upon the previous analysis to provide both an approximate formula as well+    as a more accurate stochastic model for the steady state throughput of a bulk+    transfer TCP flow.+  language: en-US+...
+ tests/biblio2yaml/strings.biblatex view
@@ -0,0 +1,48 @@+@comment{excerpt from http://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/examples/biblatex-examples.bib}++@string{anch-ie = {Angew.~Chem. Int.~Ed.}}++@article{herrmann,+	Author = {Herrmann, Wolfgang A. and Öfele, Karl and Schneider, Sabine K. and Herdtweck, Eberhardt and Hoffmann, Stephan D.},+	Date = 2006,+	Hyphenation = {english},+	Indextitle = {Carbocyclic carbene as an efficient catalyst, A},+	Journaltitle = anch-ie,+	Number = 23,+	Pages = {3859-3862},+	Title = {A Carbocyclic Carbene as an Efficient Catalyst Ligand for {C--C} Coupling Reactions},+	Volume = 45}++---+references:+- issue: 23+  page: 3859-3862+  title: A carbocyclic carbene as an efficient catalyst ligand for C–C coupling+    reactions+  volume: 45+  id: herrmann+  issued:+    year: 2006+  author:+  - given:+    - Wolfgang+    - A.+    family: Herrmann+  - given:+    - Karl+    family: Öfele+  - given:+    - Sabine+    - K.+    family: Schneider+  - given:+    - Eberhardt+    family: Herdtweck+  - given:+    - Stephan+    - D.+    family: Hoffmann+  container-title: Angew. Chem. Int. Ed.+  type: article-journal+  language: en-US+...
+ tests/biblio2yaml/test-case-conversion.biblatex view
@@ -0,0 +1,67 @@+@comment{+    - bibtex and biblatex+        - expect titles in title case+        - styles use titles as is, or convert them to sentence case+        - strings wrapped {} are not converted+    - all CSL styles at <http://github.com/citation-style-language/styles>+      and <https://www.zotero.org/styles/>+        - expect titles in sentence case+        - styles use titles as is, or convert them to title case+        - except for (hardcoded) list of stop words, see+          <http://citationstyles.org/downloads/specification.html#title-case-conversion>+        - citeproc-js (MLZ only?) also recognizes a markup syntax for+          suppressing title-case changes on a range of text (see+          <https://forums.zotero.org/discussion/21991/excessive-capitalization-of-citation-titles/#Item_22>):+            - `<span class="nocase"/>lowercase</span>`+    - Proposal:+        - When converting to yaml, convert English titles to sentence case,+            - for all strings wrapped in {} where {} is not part of a latex+              command, ...+            - ... when starting with an uppercase letter: suppress+conversion, remove the {}+            - ... when starting with a lowercase letter ("nm", "iPod"):+              suppress conversion, replace the {} with+              <span class="nocase"/></span>+            - Note: Camel case ("iPod") needs to be protected in+              bibtex/biblatex anyway; the only "extension" (wrt bibtex/biblatex+              specs) we'd be introducing is wrapping lowercase-only strings in+              {}, something that is never necessary on the latex side but+              won't break anything there either.+        - citeproc-hs/pandoc-citeproc should be modified to honour this new+          syntax and suppress conversion to title case for strings wrapped+          in `<span class="nocase"/></span>`.+        - Expected output, using one of the title-case CSL styles, here+          chicago-author-date.csl:++            Author, Ann. 2013. “A Title, in English, with a Proper Name and+an+            ACRONYM and a camelCase Word and Some Units, 400 nm, 3 cm, and+a Quote,+            *Alea iacta est*.” *Journal*.+    }++@article{item1,+    Author = {Author, Ann},+    Date = {2013},+    Hyphenation = {english},+    Journaltitle = {Journal},+    Title = {A Title, in {English}, with a {Proper Name} and an {ACRONYM}+and a {camelCase} Word and Some Units, 400~{nm}, 3~{cm}, and a Quote,+\textit{{Alea} {iacta est}}}+}++---+references:+- title: A title, in English, with a Proper Name and an ACRONYM and a <span class="nocase">camelCase</span> word and some units, 400 <span class="nocase">nm</span>, 3 <span class="nocase">cm</span>, and a quote, <i>Alea <span class="nocase">iacta est</span></i>+  id: item1+  issued:+    year: 2013+  author:+    given:+    - Ann+    family: Author+  container-title: Journal+  type: article-journal+  language: en-US+...+
+ tests/biblio2yaml/thesis.biblatex view
@@ -0,0 +1,64 @@+@comment{excerpted from http://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/examples/biblatex-examples.bib++TODO: Uppercase letters follwing hyphens need to be converted to lowercase, too (e.g., "r" in "High-Resolution". -- Same for citeproc when doing title-case conversion!)+}++@thesis{geer,+	Annotation = {This is a typical \texttt{thesis} entry for a PhD thesis. Note the \texttt{type} field in the database file which uses a localization key. Also note the format of the printed name and compare the \texttt{useprefix} option in the \texttt{options} field as well as \texttt{vangennep}},+	Author = {de Geer, Ingrid},+	Date = 1985,+	Hyphenation = {british},+	Institution = {Uppsala Universitet},+	Location = {Uppsala},+	Options = {useprefix=false},+	Subtitle = {The {Orkney} Earldom of the Twelfth Century. {A} Musicological Study},+	Title = {Earl, Saint, Bishop, Skald~-- and Music},+	Type = {phdthesis}}++@thesis{loh,+	Annotation = {This is a typical \texttt{thesis} entry for an MA thesis. Note the \texttt{type} field in the database file which uses a localization key},+	Author = {Loh, Nin C.},+	Date = 1992,+	Hyphenation = {american},+	Institution = {Massachusetts Institute of Technology},+	Location = {Cambridge, Mass.},+	Title = {High-Resolution Micromachined Interferometric Accelerometer},+	Type = {mathesis}}++---+references:+- annote: This is a typical thesis entry for a PhD thesis. Note the type field in+    the database file which uses a localization key. Also note the format of the printed+    name and compare the useprefix option in the options field as well as vangennep+  genre: PhD thesis+  title: "Earl, saint, bishop, skald – and music: The Orkney earldom of the+    twelfth century. A musicological study"+  id: geer+  issued:+    year: 1985+  author:+    given:+    - Ingrid+    dropping-particle: de+    family: Geer+  publisher: Uppsala Universitet+  type: thesis+  publisher-place: Uppsala+  language: en-GB+- annote: This is a typical thesis entry for an MA thesis. Note the type field in+    the database file which uses a localization key+  genre: "Master’s thesis"+  title: High-resolution micromachined interferometric accelerometer+  id: loh+  issued:+    year: 1992+  author:+    given:+    - Nin+    - C.+    family: Loh+  publisher: Massachusetts Institute of Technology+  type: thesis+  publisher-place: Cambridge, Mass.+  language: en-US+...
+ tests/biblio2yaml/title-and-shorttitle.biblatex view
@@ -0,0 +1,67 @@+@comment{++TODO:+Slight inconsistency:+When a biblatex “title” field contains a colon, the part before the colon is mapped to CSL “title-short”.+When there’s a biblatex “title” and a “subtitle” field, CSL “title-short” is not set, though it would make at least as much sense to map “title” (without “subtitle”) to CSL “title-short” in this case.++CSL “container-title-short” could also be set+- from biblatex “shortjournal”+- for inbook, incollection etc. from the “shorttitle” field of the crossreferenced book, collection etc. entry (see item5, item6)+... but it might not really be worth it, “container-title-short” not being used once in my sample of 70+ CSL styles.++}++@book{item4,+	Shorttitle = {The Shorttitle},+	Subtitle = {And a Subtitle, in Two Separate Fields; plus a Separate “Shorttitle” Field},+	Title = {The Title: With a Colon in the “Title” Field}}++@book{item3,+	Subtitle = {And a Subtitle, in two separate fields},+	Title = {The Title: With a Colon in the “title” field}}++@book{item2,+	Subtitle = {The Subtitle, In Two Separate fields},+	Title = {The Title}}++@book{item1,+	Title = {The Title: And the Subtitle, all in the “title” Field}}++@inbook{item5,+	Title = {The inbook Title: And the Subtitle, all in the “title” Field},+	Crossref = {item6}}++@book{item6,+	Title = {The Title: And the Subtitle, all in the “title” Field},+	Shorttitle = {The Shorttitle},+}+---+references:+- title-short: The shorttitle+  title: "The title: with a colon in the “title” field: And a subtitle,+    in two separate fields; plus a separate “shorttitle” field"+  id: item4+  type: book+- title-short: The title+  title: "The title: with a colon in the “title” field: And a subtitle,+    in two separate fields"+  id: item3+  type: book+- title: ! 'The title: The subtitle, in two separate fields'+  id: item2+  type: book+- title-short: The title+  title: "The title: and the subtitle, all in the “title” field"+  id: item1+  type: book+- title-short: The inbook title+  title: "The inbook title: and the subtitle, all in the “title” field"+  id: item5+  container-title: "The title: and the subtitle, all in the “title” field"+  type: chapter+- title-short: The shorttitle+  title: "The title: and the subtitle, all in the “title” field"+  id: item6+  type: book+...
tests/chicago-author-date.expected.json view
@@ -1,2003 +1,2556 @@ [   {     "unMeta": {-      "bibliography": {-        "MetaInlines": [-          {-            "Str": "tests/biblio.bib"-          }-        ]-      },-      "csl": {-        "MetaInlines": [-          {-            "Str": "tests/chicago-author-date.csl"-          }-        ]-      }-    }-  },-  [-    {-      "Header": [-        1,-        [-          "pandoc-with-citeproc-hs",-          [],-          []-        ],-        [-          {-            "Str": "Pandoc"-          },-          {-            "Space": []-          },-          {-            "Str": "with"-          },-          {-            "Space": []-          },-          {-            "Str": "citeproc-hs"-          }-        ]-      ]-    },-    {-      "Para": [-        {-          "Cite": [-            [-              {-                "citationNoteNum": 0,-                "citationSuffix": [],-                "citationHash": 1,-                "citationMode": {-                  "NormalCitation": []-                },-                "citationPrefix": [],-                "citationId": "nonexistent"-              }-            ],-            [-              {-                "Str": "("-              },-              {-                "Span": [-                  [-                    "",-                    [-                      "citeproc-not-found"-                    ],-                    [-                      [-                        "data-reference-id",-                        "nonexistent"-                      ]-                    ]-                  ],-                  [-                    {-                      "Strong": [-                        {-                          "Str": "???"-                        }-                      ]-                    }-                  ]-                ]-              },-              {-                "Str": ")"-              }-            ]-          ]-        }-      ]-    },-    {-      "Para": [-        {-          "Cite": [-            [-              {-                "citationNoteNum": 0,-                "citationSuffix": [],-                "citationHash": 2,-                "citationMode": {-                  "AuthorInText": []-                },-                "citationPrefix": [],-                "citationId": "nonexistent"-              }-            ],-            [-              {-                "Space": []-              },-              {-                "Str": "("-              },-              {-                "Span": [-                  [-                    "",-                    [-                      "citeproc-not-found"-                    ],-                    [-                      [-                        "data-reference-id",-                        "nonexistent"-                      ]-                    ]-                  ],-                  [-                    {-                      "Strong": [-                        {-                          "Str": "???"-                        }-                      ]-                    }-                  ]-                ]-              },-              {-                "Str": ")"-              }-            ]-          ]-        }-      ]-    },-    {-      "Para": [-        {-          "Cite": [-            [-              {-                "citationNoteNum": 0,-                "citationSuffix": [],-                "citationHash": 3,-                "citationMode": {-                  "AuthorInText": []-                },-                "citationPrefix": [],-                "citationId": "item1"-              }-            ],-            [-              {-                "Str": "Doe"-              },-              {-                "Space": []-              },-              {-                "Str": "("-              },-              {-                "Str": "2005"-              },-              {-                "Str": ")"-              }-            ]-          ]-        },-        {-          "Space": []-        },-        {-          "Str": "says"-        },-        {-          "Space": []-        },-        {-          "Str": "blah."-        }-      ]-    },-    {-      "Para": [-        {-          "Cite": [-            [-              {-                "citationNoteNum": 0,-                "citationSuffix": [-                  {-                    "Str": "p."-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "30"-                  }-                ],-                "citationHash": 4,-                "citationMode": {-                  "AuthorInText": []-                },-                "citationPrefix": [],-                "citationId": "item1"-              }-            ],-            [-              {-                "Str": "Doe"-              },-              {-                "Space": []-              },-              {-                "Str": "("-              },-              {-                "Str": "2005"-              },-              {-                "Str": ","-              },-              {-                "Space": []-              },-              {-                "Str": "30"-              },-              {-                "Str": ")"-              }-            ]-          ]-        },-        {-          "Space": []-        },-        {-          "Str": "says"-        },-        {-          "Space": []-        },-        {-          "Str": "blah."-        }-      ]-    },-    {-      "Para": [-        {-          "Cite": [-            [-              {-                "citationNoteNum": 0,-                "citationSuffix": [-                  {-                    "Str": "p."-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "30,"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "with"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "suffix"-                  }-                ],-                "citationHash": 5,-                "citationMode": {-                  "AuthorInText": []-                },-                "citationPrefix": [],-                "citationId": "item1"-              }-            ],-            [-              {-                "Str": "Doe"-              },-              {-                "Space": []-              },-              {-                "Str": "("-              },-              {-                "Str": "2005"-              },-              {-                "Str": ","-              },-              {-                "Space": []-              },-              {-                "Str": "30"-              },-              {-                "Str": ","-              },-              {-                "Space": []-              },-              {-                "Str": "with"-              },-              {-                "Space": []-              },-              {-                "Str": "suffix"-              },-              {-                "Str": ")"-              }-            ]-          ]-        },-        {-          "Space": []-        },-        {-          "Str": "says"-        },-        {-          "Space": []-        },-        {-          "Str": "blah."-        }-      ]-    },-    {-      "Para": [-        {-          "Cite": [-            [-              {-                "citationNoteNum": 0,-                "citationSuffix": [],-                "citationHash": 6,-                "citationMode": {-                  "AuthorInText": []-                },-                "citationPrefix": [],-                "citationId": "item1"-              },-              {-                "citationNoteNum": 0,-                "citationSuffix": [-                  {-                    "Space": []-                  },-                  {-                    "Str": "p."-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "30"-                  }-                ],-                "citationHash": 7,-                "citationMode": {-                  "SuppressAuthor": []-                },-                "citationPrefix": [],-                "citationId": "item2"-              },-              {-                "citationNoteNum": 0,-                "citationSuffix": [],-                "citationHash": 8,-                "citationMode": {-                  "NormalCitation": []-                },-                "citationPrefix": [-                  {-                    "Str": "see"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "also"-                  }-                ],-                "citationId": "пункт3"-              }-            ],-            [-              {-                "Str": "Doe"-              },-              {-                "Space": []-              },-              {-                "Str": "("-              },-              {-                "Str": "2005"-              },-              {-                "Str": ";"-              },-              {-                "Space": []-              },-              {-                "Str": "2006"-              },-              {-                "Str": ","-              },-              {-                "Space": []-              },-              {-                "Str": "30"-              },-              {-                "Str": ";"-              },-              {-                "Space": []-              },-              {-                "Str": "see"-              },-              {-                "Space": []-              },-              {-                "Str": "also"-              },-              {-                "Space": []-              },-              {-                "Str": "Doe"-              },-              {-                "Space": []-              },-              {-                "Str": "a"-              },-              {-                "Str": "n"-              },-              {-                "Str": "d"-              },-              {-                "Space": []-              },-              {-                "Str": "Roe"-              },-              {-                "Space": []-              },-              {-                "Str": "2007"-              },-              {-                "Str": ")"-              }-            ]-          ]-        },-        {-          "Space": []-        },-        {-          "Str": "says"-        },-        {-          "Space": []-        },-        {-          "Str": "blah."-        }-      ]-    },-    {-      "Para": [-        {-          "Str": "In"-        },-        {-          "Space": []-        },-        {-          "Str": "a"-        },-        {-          "Space": []-        },-        {-          "Str": "note."-        },-        {-          "Note": [-            {-              "Para": [-                {-                  "Cite": [-                    [-                      {-                        "citationNoteNum": 0,-                        "citationSuffix": [-                          {-                            "Str": "p."-                          },-                          {-                            "Space": []-                          },-                          {-                            "Str": "12"-                          }-                        ],-                        "citationHash": 9,-                        "citationMode": {-                          "AuthorInText": []-                        },-                        "citationPrefix": [],-                        "citationId": "пункт3"-                      }-                    ],-                    [-                      {-                        "Str": "Doe"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "and"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "Roe"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "("-                      },-                      {-                        "Str": "2007"-                      },-                      {-                        "Str": ","-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "12"-                      },-                      {-                        "Str": ")"-                      }-                    ]-                  ]-                },-                {-                  "Space": []-                },-                {-                  "Str": "and"-                },-                {-                  "Space": []-                },-                {-                  "Str": "a"-                },-                {-                  "Space": []-                },-                {-                  "Str": "citation"-                },-                {-                  "Space": []-                },-                {-                  "Str": "without"-                },-                {-                  "Space": []-                },-                {-                  "Str": "locators"-                },-                {-                  "Space": []-                },-                {-                  "Cite": [-                    [-                      {-                        "citationNoteNum": 0,-                        "citationSuffix": [],-                        "citationHash": 10,-                        "citationMode": {-                          "NormalCitation": []-                        },-                        "citationPrefix": [],-                        "citationId": "пункт3"-                      }-                    ],-                    [-                      {-                        "Str": "("-                      },-                      {-                        "Str": "Doe"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "a"-                      },-                      {-                        "Str": "n"-                      },-                      {-                        "Str": "d"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "Roe"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "2007"-                      },-                      {-                        "Str": ")"-                      }-                    ]-                  ]-                },-                {-                  "Str": "."-                }-              ]-            }-          ]-        }-      ]-    },-    {-      "Para": [-        {-          "Str": "A"-        },-        {-          "Space": []-        },-        {-          "Str": "citation"-        },-        {-          "Space": []-        },-        {-          "Str": "group"-        },-        {-          "Space": []-        },-        {-          "Cite": [-            [-              {-                "citationNoteNum": 0,-                "citationSuffix": [-                  {-                    "Space": []-                  },-                  {-                    "Str": "chap."-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "3"-                  }-                ],-                "citationHash": 11,-                "citationMode": {-                  "NormalCitation": []-                },-                "citationPrefix": [-                  {-                    "Str": "see"-                  }-                ],-                "citationId": "item1"-              },-              {-                "citationNoteNum": 0,-                "citationSuffix": [-                  {-                    "Space": []-                  },-                  {-                    "Str": "p."-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "34-35"-                  }-                ],-                "citationHash": 12,-                "citationMode": {-                  "NormalCitation": []-                },-                "citationPrefix": [-                  {-                    "Str": "also"-                  }-                ],-                "citationId": "пункт3"-              }-            ],-            [-              {-                "Str": "("-              },-              {-                "Str": "see"-              },-              {-                "Space": []-              },-              {-                "Str": "Doe"-              },-              {-                "Space": []-              },-              {-                "Str": "2005"-              },-              {-                "Str": ","-              },-              {-                "Space": []-              },-              {-                "Str": "chap."-              },-              {-                "Space": []-              },-              {-                "Str": "3"-              },-              {-                "Str": ";"-              },-              {-                "Space": []-              },-              {-                "Str": "also"-              },-              {-                "Space": []-              },-              {-                "Str": "Doe"-              },-              {-                "Space": []-              },-              {-                "Str": "a"-              },-              {-                "Str": "n"-              },-              {-                "Str": "d"-              },-              {-                "Space": []-              },-              {-                "Str": "Roe"-              },-              {-                "Space": []-              },-              {-                "Str": "2007"-              },-              {-                "Str": ","-              },-              {-                "Space": []-              },-              {-                "Str": "34–35"-              },-              {-                "Str": ")"-              }-            ]-          ]-        },-        {-          "Str": "."-        }-      ]-    },-    {-      "Para": [-        {-          "Str": "Another"-        },-        {-          "Space": []-        },-        {-          "Str": "one"-        },-        {-          "Space": []-        },-        {-          "Cite": [-            [-              {-                "citationNoteNum": 0,-                "citationSuffix": [-                  {-                    "Space": []-                  },-                  {-                    "Str": "p."-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "34-35"-                  }-                ],-                "citationHash": 13,-                "citationMode": {-                  "NormalCitation": []-                },-                "citationPrefix": [-                  {-                    "Str": "see"-                  }-                ],-                "citationId": "item1"-              }-            ],-            [-              {-                "Str": "("-              },-              {-                "Str": "see"-              },-              {-                "Space": []-              },-              {-                "Str": "Doe"-              },-              {-                "Space": []-              },-              {-                "Str": "2005"-              },-              {-                "Str": ","-              },-              {-                "Space": []-              },-              {-                "Str": "34–35"-              },-              {-                "Str": ")"-              }-            ]-          ]-        },-        {-          "Str": "."-        }-      ]-    },-    {-      "Para": [-        {-          "Str": "And"-        },-        {-          "Space": []-        },-        {-          "Str": "another"-        },-        {-          "Space": []-        },-        {-          "Str": "one"-        },-        {-          "Space": []-        },-        {-          "Str": "in"-        },-        {-          "Space": []-        },-        {-          "Str": "a"-        },-        {-          "Space": []-        },-        {-          "Str": "note."-        },-        {-          "Note": [-            {-              "Para": [-                {-                  "Str": "Some"-                },-                {-                  "Space": []-                },-                {-                  "Str": "citations"-                },-                {-                  "Space": []-                },-                {-                  "Cite": [-                    [-                      {-                        "citationNoteNum": 0,-                        "citationSuffix": [-                          {-                            "Space": []-                          },-                          {-                            "Str": "chap."-                          },-                          {-                            "Space": []-                          },-                          {-                            "Str": "3"-                          }-                        ],-                        "citationHash": 14,-                        "citationMode": {-                          "NormalCitation": []-                        },-                        "citationPrefix": [-                          {-                            "Str": "see"-                          }-                        ],-                        "citationId": "item1"-                      },-                      {-                        "citationNoteNum": 0,-                        "citationSuffix": [],-                        "citationHash": 15,-                        "citationMode": {-                          "NormalCitation": []-                        },-                        "citationPrefix": [],-                        "citationId": "пункт3"-                      },-                      {-                        "citationNoteNum": 0,-                        "citationSuffix": [],-                        "citationHash": 16,-                        "citationMode": {-                          "NormalCitation": []-                        },-                        "citationPrefix": [],-                        "citationId": "item2"-                      }-                    ],-                    [-                      {-                        "Str": "("-                      },-                      {-                        "Str": "see"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "Doe"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "2005"-                      },-                      {-                        "Str": ","-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "chap."-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "3"-                      },-                      {-                        "Str": ";"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "Doe"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "a"-                      },-                      {-                        "Str": "n"-                      },-                      {-                        "Str": "d"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "Roe"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "2007"-                      },-                      {-                        "Str": ";"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "Doe"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "2006"-                      },-                      {-                        "Str": ")"-                      }-                    ]-                  ]-                },-                {-                  "Str": "."-                }-              ]-            }-          ]-        }-      ]-    },-    {-      "Para": [-        {-          "Str": "Citation"-        },-        {-          "Space": []-        },-        {-          "Str": "with"-        },-        {-          "Space": []-        },-        {-          "Str": "a"-        },-        {-          "Space": []-        },-        {-          "Str": "suffix"-        },-        {-          "Space": []-        },-        {-          "Str": "and"-        },-        {-          "Space": []-        },-        {-          "Str": "locator"-        },-        {-          "Space": []-        },-        {-          "Cite": [-            [-              {-                "citationNoteNum": 0,-                "citationSuffix": [-                  {-                    "Space": []-                  },-                  {-                    "Str": "pp."-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "33,"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "35-37,"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "and"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "nowhere"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "else"-                  }-                ],-                "citationHash": 17,-                "citationMode": {-                  "NormalCitation": []-                },-                "citationPrefix": [],-                "citationId": "item1"-              }-            ],-            [-              {-                "Str": "("-              },-              {-                "Str": "Doe"-              },-              {-                "Space": []-              },-              {-                "Str": "2005"-              },-              {-                "Str": ","-              },-              {-                "Space": []-              },-              {-                "Str": "33,"-              },-              {-                "Space": []-              },-              {-                "Str": "35–37"-              },-              {-                "Str": ","-              },-              {-                "Space": []-              },-              {-                "Str": "and"-              },-              {-                "Space": []-              },-              {-                "Str": "nowhere"-              },-              {-                "Space": []-              },-              {-                "Str": "else"-              },-              {-                "Str": ")"-              }-            ]-          ]-        },-        {-          "Str": "."-        }-      ]-    },-    {-      "Para": [-        {-          "Str": "Citation"-        },-        {-          "Space": []-        },-        {-          "Str": "with"-        },-        {-          "Space": []-        },-        {-          "Str": "suffix"-        },-        {-          "Space": []-        },-        {-          "Str": "only"-        },-        {-          "Space": []-        },-        {-          "Cite": [-            [-              {-                "citationNoteNum": 0,-                "citationSuffix": [-                  {-                    "Space": []-                  },-                  {-                    "Str": "and"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "nowhere"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "else"-                  }-                ],-                "citationHash": 18,-                "citationMode": {-                  "NormalCitation": []-                },-                "citationPrefix": [],-                "citationId": "item1"-              }-            ],-            [-              {-                "Str": "("-              },-              {-                "Str": "Doe"-              },-              {-                "Space": []-              },-              {-                "Str": "2005"-              },-              {-                "Space": []-              },-              {-                "Str": "and"-              },-              {-                "Space": []-              },-              {-                "Str": "nowhere"-              },-              {-                "Space": []-              },-              {-                "Str": "else"-              },-              {-                "Str": ")"-              }-            ]-          ]-        },-        {-          "Str": "."-        }-      ]-    },-    {-      "Para": [-        {-          "Str": "Now"-        },-        {-          "Space": []-        },-        {-          "Str": "some"-        },-        {-          "Space": []-        },-        {-          "Str": "modifiers."-        },-        {-          "Note": [-            {-              "Para": [-                {-                  "Str": "Like"-                },-                {-                  "Space": []-                },-                {-                  "Str": "a"-                },-                {-                  "Space": []-                },-                {-                  "Str": "citation"-                },-                {-                  "Space": []-                },-                {-                  "Str": "without"-                },-                {-                  "Space": []-                },-                {-                  "Str": "author:"-                },-                {-                  "Space": []-                },-                {-                  "Cite": [-                    [-                      {-                        "citationNoteNum": 0,-                        "citationSuffix": [],-                        "citationHash": 19,-                        "citationMode": {-                          "SuppressAuthor": []-                        },-                        "citationPrefix": [],-                        "citationId": "item1"-                      }-                    ],-                    [-                      {-                        "Str": "("-                      },-                      {-                        "Str": "2005"-                      },-                      {-                        "Str": ")"-                      }-                    ]-                  ]-                },-                {-                  "Str": ","-                },-                {-                  "Space": []-                },-                {-                  "Str": "and"-                },-                {-                  "Space": []-                },-                {-                  "Str": "now"-                },-                {-                  "Space": []-                },-                {-                  "Str": "Doe"-                },-                {-                  "Space": []-                },-                {-                  "Str": "with"-                },-                {-                  "Space": []-                },-                {-                  "Str": "a"-                },-                {-                  "Space": []-                },-                {-                  "Str": "locator"-                },-                {-                  "Space": []-                },-                {-                  "Cite": [-                    [-                      {-                        "citationNoteNum": 0,-                        "citationSuffix": [-                          {-                            "Space": []-                          },-                          {-                            "Str": "p."-                          },-                          {-                            "Space": []-                          },-                          {-                            "Str": "44"-                          }-                        ],-                        "citationHash": 20,-                        "citationMode": {-                          "SuppressAuthor": []-                        },-                        "citationPrefix": [],-                        "citationId": "item2"-                      }-                    ],-                    [-                      {-                        "Str": "("-                      },-                      {-                        "Str": "2006"-                      },-                      {-                        "Str": ","-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "44"-                      },-                      {-                        "Str": ")"-                      }-                    ]-                  ]-                },-                {-                  "Str": "."-                }-              ]-            }-          ]-        }-      ]-    },-    {-      "Para": [-        {-          "Str": "With"-        },-        {-          "Space": []-        },-        {-          "Str": "some"-        },-        {-          "Space": []-        },-        {-          "Str": "markup"-        },-        {-          "Space": []-        },-        {-          "Cite": [-            [-              {-                "citationNoteNum": 0,-                "citationSuffix": [-                  {-                    "Space": []-                  },-                  {-                    "Str": "p."-                  },-                  {-                    "Space": []-                  },-                  {-                    "Strong": [-                      {-                        "Str": "32"-                      }-                    ]-                  }-                ],-                "citationHash": 21,-                "citationMode": {-                  "NormalCitation": []-                },-                "citationPrefix": [-                  {-                    "Emph": [-                      {-                        "Str": "see"-                      }-                    ]-                  }-                ],-                "citationId": "item1"-              }-            ],-            [-              {-                "Str": "("-              },-              {-                "Emph": [-                  {-                    "Str": "see"-                  }-                ]-              },-              {-                "Space": []-              },-              {-                "Str": "Doe"-              },-              {-                "Space": []-              },-              {-                "Str": "2005"-              },-              {-                "Str": ","-              },-              {-                "Space": []-              },-              {-                "Str": "32"-              },-              {-                "Str": ")"-              }-            ]-          ]-        },-        {-          "Str": "."-        }-      ]-    },-    {-      "Div": [-        [-          "",-          [-            "references"-          ],-          []-        ],-        [-          {-            "Header": [-              1,-              [-                "references",-                [],-                []-              ],-              [-                {-                  "Str": "References"-                }-              ]-            ]-          },-          {-            "Para": [-              {-                "Str": "Doe,"-              },-              {-                "Space": []-              },-              {-                "Str": "John."-              },-              {-                "Space": []-              },-              {-                "Str": "2005."-              },-              {-                "Space": []-              },-              {-                "Emph": [-                  {-                    "Str": "First"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "Book"-                  }-                ]-              },-              {-                "Str": "."-              },-              {-                "Space": []-              },-              {-                "Str": "Cambridge:"-              },-              {-                "Space": []-              },-              {-                "Str": "Cambridge"-              },-              {-                "Space": []-              },-              {-                "Str": "University"-              },-              {-                "Space": []-              },-              {-                "Str": "Press"-              },-              {-                "Str": "."-              }-            ]-          },-          {-            "Para": [-              {-                "Str": "———."-              },-              {-                "Space": []-              },-              {-                "Str": "2006."-              },-              {-                "Space": []-              },-              {-                "Str": "“"-              },-              {-                "Str": "Article"-              },-              {-                "Str": "."-              },-              {-                "Str": "”"-              },-              {-                "Str": ""-              },-              {-                "Space": []-              },-              {-                "Emph": [-                  {-                    "Str": "Journal"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "of"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "Generic"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "Studies"-                  }-                ]-              },-              {-                "Space": []-              },-              {-                "Str": "6:"-              },-              {-                "Space": []-              },-              {-                "Str": "33–34"-              },-              {-                "Str": "."-              }-            ]-          },-          {-            "Para": [-              {-                "Str": "Doe,"-              },-              {-                "Space": []-              },-              {-                "Str": "John,"-              },-              {-                "Space": []-              },-              {-                "Str": "and"-              },-              {-                "Space": []-              },-              {-                "Str": "Jenny"-              },-              {-                "Space": []-              },-              {-                "Str": "Roe."-              },-              {-                "Space": []-              },-              {-                "Str": "2007."-              },-              {-                "Space": []-              },-              {-                "Str": "“"-              },-              {-                "Str": "Why"-              },-              {-                "Space": []-              },-              {-                "Str": "Water"-              },-              {-                "Space": []-              },-              {-                "Str": "Is"-              },-              {-                "Space": []-              },-              {-                "Str": "Wet"-              },-              {-                "Str": "."-              },-              {-                "Str": "”"-              },-              {-                "Str": ""-              },-              {-                "Space": []-              },-              {-                "Str": "In"-              },-              {-                "Space": []-              },-              {-                "Emph": [-                  {-                    "Str": "Third"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "Book"-                  }-                ]-              },-              {-                "Str": ","-              },-              {-                "Space": []-              },-              {-                "Str": "edited"-              },-              {-                "Space": []-              },-              {-                "Str": "by"-              },-              {-                "Space": []-              },-              {-                "Str": "Sam"-              },-              {-                "Space": []-              },-              {-                "Str": "Smith."-              },-              {-                "Space": []-              },-              {-                "Str": "Oxford:"-              },-              {-                "Space": []-              },-              {-                "Str": "Oxford"-              },-              {-                "Space": []-              },-              {-                "Str": "University"-              },-              {-                "Space": []-              },-              {-                "Str": "Press"-              },-              {-                "Str": "."-              }-            ]-          }-        ]-      ]+      "csl": {+        "c": [+          {+            "c": "tests/chicago-author-date.csl",+            "t": "Str"+          }+        ],+        "t": "MetaInlines"+      },+      "bibliography": {+        "c": [+          {+            "c": "tests/biblio.bib",+            "t": "Str"+          }+        ],+        "t": "MetaInlines"+      }+    }+  },+  [+    {+      "c": [+        1,+        [+          "pandoc-with-citeproc-hs",+          [],+          []+        ],+        [+          {+            "c": "Pandoc",+            "t": "Str"+          },+          {+            "c": [],+            "t": "Space"+          },+          {+            "c": "with",+            "t": "Str"+          },+          {+            "c": [],+            "t": "Space"+          },+          {+            "c": "citeproc-hs",+            "t": "Str"+          }+        ]+      ],+      "t": "Header"+    },+    {+      "c": [+        {+          "c": [+            [+              {+                "citationId": "nonexistent",+                "citationSuffix": [],+                "citationHash": 1,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "NormalCitation"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "(",+                "t": "Str"+              },+              {+                "c": [+                  [+                    "",+                    [+                      "citeproc-not-found"+                    ],+                    [+                      [+                        "data-reference-id",+                        "nonexistent"+                      ]+                    ]+                  ],+                  [+                    {+                      "c": [+                        {+                          "c": "???",+                          "t": "Str"+                        }+                      ],+                      "t": "Strong"+                    }+                  ]+                ],+                "t": "Span"+              },+              {+                "c": ")",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": [+            [+              {+                "citationId": "nonexistent",+                "citationSuffix": [],+                "citationHash": 2,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "AuthorInText"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "(",+                "t": "Str"+              },+              {+                "c": [+                  [+                    "",+                    [+                      "citeproc-not-found"+                    ],+                    [+                      [+                        "data-reference-id",+                        "nonexistent"+                      ]+                    ]+                  ],+                  [+                    {+                      "c": [+                        {+                          "c": "???",+                          "t": "Str"+                        }+                      ],+                      "t": "Strong"+                    }+                  ]+                ],+                "t": "Span"+              },+              {+                "c": ")",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [],+                "citationHash": 3,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "AuthorInText"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "Doe",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "(",+                "t": "Str"+              },+              {+                "c": "2005",+                "t": "Str"+              },+              {+                "c": ")",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "says",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "blah.",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [+                  {+                    "c": "p.",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "30",+                    "t": "Str"+                  }+                ],+                "citationHash": 4,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "AuthorInText"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "Doe",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "(",+                "t": "Str"+              },+              {+                "c": "2005",+                "t": "Str"+              },+              {+                "c": ",",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "30",+                "t": "Str"+              },+              {+                "c": ")",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "says",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "blah.",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [+                  {+                    "c": "p.",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "30,",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "with",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "suffix",+                    "t": "Str"+                  }+                ],+                "citationHash": 5,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "AuthorInText"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "Doe",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "(",+                "t": "Str"+              },+              {+                "c": "2005",+                "t": "Str"+              },+              {+                "c": ",",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "30",+                "t": "Str"+              },+              {+                "c": ",",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "with",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "suffix",+                "t": "Str"+              },+              {+                "c": ")",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "says",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "blah.",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [],+                "citationHash": 6,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "AuthorInText"+                },+                "citationNoteNum": 0+              },+              {+                "citationId": "item2",+                "citationSuffix": [+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "p.",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "30",+                    "t": "Str"+                  }+                ],+                "citationHash": 7,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "SuppressAuthor"+                },+                "citationNoteNum": 0+              },+              {+                "citationId": "пункт3",+                "citationSuffix": [],+                "citationHash": 8,+                "citationPrefix": [+                  {+                    "c": "see",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "also",+                    "t": "Str"+                  }+                ],+                "citationMode": {+                  "c": [],+                  "t": "NormalCitation"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "Doe",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "(",+                "t": "Str"+              },+              {+                "c": "2005",+                "t": "Str"+              },+              {+                "c": ";",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "2006",+                "t": "Str"+              },+              {+                "c": ",",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "30",+                "t": "Str"+              },+              {+                "c": ";",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "see",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "also",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "Doe",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "a",+                "t": "Str"+              },+              {+                "c": "n",+                "t": "Str"+              },+              {+                "c": "d",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "Roe",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "2007",+                "t": "Str"+              },+              {+                "c": ")",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "says",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "blah.",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": "In",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "a",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "note.",+          "t": "Str"+        },+        {+          "c": [+            {+              "c": [+                {+                  "c": [+                    [+                      {+                        "citationId": "пункт3",+                        "citationSuffix": [+                          {+                            "c": "p.",+                            "t": "Str"+                          },+                          {+                            "c": [],+                            "t": "Space"+                          },+                          {+                            "c": "12",+                            "t": "Str"+                          }+                        ],+                        "citationHash": 9,+                        "citationPrefix": [],+                        "citationMode": {+                          "c": [],+                          "t": "AuthorInText"+                        },+                        "citationNoteNum": 0+                      }+                    ],+                    [+                      {+                        "c": "Doe",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "and",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "Roe",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "(",+                        "t": "Str"+                      },+                      {+                        "c": "2007",+                        "t": "Str"+                      },+                      {+                        "c": ",",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "12",+                        "t": "Str"+                      },+                      {+                        "c": ")",+                        "t": "Str"+                      }+                    ]+                  ],+                  "t": "Cite"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "and",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "a",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "citation",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "without",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "locators",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": [+                    [+                      {+                        "citationId": "пункт3",+                        "citationSuffix": [],+                        "citationHash": 10,+                        "citationPrefix": [],+                        "citationMode": {+                          "c": [],+                          "t": "NormalCitation"+                        },+                        "citationNoteNum": 0+                      }+                    ],+                    [+                      {+                        "c": "(",+                        "t": "Str"+                      },+                      {+                        "c": "Doe",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "a",+                        "t": "Str"+                      },+                      {+                        "c": "n",+                        "t": "Str"+                      },+                      {+                        "c": "d",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "Roe",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "2007",+                        "t": "Str"+                      },+                      {+                        "c": ")",+                        "t": "Str"+                      }+                    ]+                  ],+                  "t": "Cite"+                },+                {+                  "c": ".",+                  "t": "Str"+                }+              ],+              "t": "Para"+            }+          ],+          "t": "Note"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": "A",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "citation",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "group",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "chap.",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "3",+                    "t": "Str"+                  }+                ],+                "citationHash": 11,+                "citationPrefix": [+                  {+                    "c": "see",+                    "t": "Str"+                  }+                ],+                "citationMode": {+                  "c": [],+                  "t": "NormalCitation"+                },+                "citationNoteNum": 0+              },+              {+                "citationId": "пункт3",+                "citationSuffix": [+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "p.",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "34-35",+                    "t": "Str"+                  }+                ],+                "citationHash": 12,+                "citationPrefix": [+                  {+                    "c": "also",+                    "t": "Str"+                  }+                ],+                "citationMode": {+                  "c": [],+                  "t": "NormalCitation"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "(",+                "t": "Str"+              },+              {+                "c": "see",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "Doe",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "2005",+                "t": "Str"+              },+              {+                "c": ",",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "chap.",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "3",+                "t": "Str"+              },+              {+                "c": ";",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "also",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "Doe",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "a",+                "t": "Str"+              },+              {+                "c": "n",+                "t": "Str"+              },+              {+                "c": "d",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "Roe",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "2007",+                "t": "Str"+              },+              {+                "c": ",",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "34–35",+                "t": "Str"+              },+              {+                "c": ")",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": ".",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": "Another",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "one",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "p.",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "34-35",+                    "t": "Str"+                  }+                ],+                "citationHash": 13,+                "citationPrefix": [+                  {+                    "c": "see",+                    "t": "Str"+                  }+                ],+                "citationMode": {+                  "c": [],+                  "t": "NormalCitation"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "(",+                "t": "Str"+              },+              {+                "c": "see",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "Doe",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "2005",+                "t": "Str"+              },+              {+                "c": ",",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "34–35",+                "t": "Str"+              },+              {+                "c": ")",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": ".",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": "And",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "another",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "one",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "in",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "a",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "note.",+          "t": "Str"+        },+        {+          "c": [+            {+              "c": [+                {+                  "c": "Some",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "citations",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": [+                    [+                      {+                        "citationId": "item1",+                        "citationSuffix": [+                          {+                            "c": [],+                            "t": "Space"+                          },+                          {+                            "c": "chap.",+                            "t": "Str"+                          },+                          {+                            "c": [],+                            "t": "Space"+                          },+                          {+                            "c": "3",+                            "t": "Str"+                          }+                        ],+                        "citationHash": 14,+                        "citationPrefix": [+                          {+                            "c": "see",+                            "t": "Str"+                          }+                        ],+                        "citationMode": {+                          "c": [],+                          "t": "NormalCitation"+                        },+                        "citationNoteNum": 0+                      },+                      {+                        "citationId": "пункт3",+                        "citationSuffix": [],+                        "citationHash": 15,+                        "citationPrefix": [],+                        "citationMode": {+                          "c": [],+                          "t": "NormalCitation"+                        },+                        "citationNoteNum": 0+                      },+                      {+                        "citationId": "item2",+                        "citationSuffix": [],+                        "citationHash": 16,+                        "citationPrefix": [],+                        "citationMode": {+                          "c": [],+                          "t": "NormalCitation"+                        },+                        "citationNoteNum": 0+                      }+                    ],+                    [+                      {+                        "c": "(",+                        "t": "Str"+                      },+                      {+                        "c": "see",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "Doe",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "2005",+                        "t": "Str"+                      },+                      {+                        "c": ",",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "chap.",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "3",+                        "t": "Str"+                      },+                      {+                        "c": ";",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "Doe",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "a",+                        "t": "Str"+                      },+                      {+                        "c": "n",+                        "t": "Str"+                      },+                      {+                        "c": "d",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "Roe",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "2007",+                        "t": "Str"+                      },+                      {+                        "c": ";",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "Doe",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "2006",+                        "t": "Str"+                      },+                      {+                        "c": ")",+                        "t": "Str"+                      }+                    ]+                  ],+                  "t": "Cite"+                },+                {+                  "c": ".",+                  "t": "Str"+                }+              ],+              "t": "Para"+            }+          ],+          "t": "Note"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": "Citation",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "with",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "a",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "suffix",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "and",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "locator",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "pp.",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "33,",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "35-37,",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "and",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "nowhere",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "else",+                    "t": "Str"+                  }+                ],+                "citationHash": 17,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "NormalCitation"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "(",+                "t": "Str"+              },+              {+                "c": "Doe",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "2005",+                "t": "Str"+              },+              {+                "c": ",",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "33,",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "35–37",+                "t": "Str"+              },+              {+                "c": ",",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "and",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "nowhere",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "else",+                "t": "Str"+              },+              {+                "c": ")",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": ".",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": "Citation",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "with",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "suffix",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "only",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "and",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "nowhere",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "else",+                    "t": "Str"+                  }+                ],+                "citationHash": 18,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "NormalCitation"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "(",+                "t": "Str"+              },+              {+                "c": "Doe",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "2005",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "and",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "nowhere",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "else",+                "t": "Str"+              },+              {+                "c": ")",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": ".",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": "Now",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "some",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "modifiers.",+          "t": "Str"+        },+        {+          "c": [+            {+              "c": [+                {+                  "c": "Like",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "a",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "citation",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "without",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "author:",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": [+                    [+                      {+                        "citationId": "item1",+                        "citationSuffix": [],+                        "citationHash": 19,+                        "citationPrefix": [],+                        "citationMode": {+                          "c": [],+                          "t": "SuppressAuthor"+                        },+                        "citationNoteNum": 0+                      }+                    ],+                    [+                      {+                        "c": "(",+                        "t": "Str"+                      },+                      {+                        "c": "2005",+                        "t": "Str"+                      },+                      {+                        "c": ")",+                        "t": "Str"+                      }+                    ]+                  ],+                  "t": "Cite"+                },+                {+                  "c": ",",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "and",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "now",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "Doe",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "with",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "a",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "locator",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": [+                    [+                      {+                        "citationId": "item2",+                        "citationSuffix": [+                          {+                            "c": [],+                            "t": "Space"+                          },+                          {+                            "c": "p.",+                            "t": "Str"+                          },+                          {+                            "c": [],+                            "t": "Space"+                          },+                          {+                            "c": "44",+                            "t": "Str"+                          }+                        ],+                        "citationHash": 20,+                        "citationPrefix": [],+                        "citationMode": {+                          "c": [],+                          "t": "SuppressAuthor"+                        },+                        "citationNoteNum": 0+                      }+                    ],+                    [+                      {+                        "c": "(",+                        "t": "Str"+                      },+                      {+                        "c": "2006",+                        "t": "Str"+                      },+                      {+                        "c": ",",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "44",+                        "t": "Str"+                      },+                      {+                        "c": ")",+                        "t": "Str"+                      }+                    ]+                  ],+                  "t": "Cite"+                },+                {+                  "c": ".",+                  "t": "Str"+                }+              ],+              "t": "Para"+            }+          ],+          "t": "Note"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": "With",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "some",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "markup",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "p.",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": [+                      {+                        "c": "32",+                        "t": "Str"+                      }+                    ],+                    "t": "Strong"+                  }+                ],+                "citationHash": 21,+                "citationPrefix": [+                  {+                    "c": [+                      {+                        "c": "see",+                        "t": "Str"+                      }+                    ],+                    "t": "Emph"+                  }+                ],+                "citationMode": {+                  "c": [],+                  "t": "NormalCitation"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "(",+                "t": "Str"+              },+              {+                "c": [+                  {+                    "c": "see",+                    "t": "Str"+                  }+                ],+                "t": "Emph"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "Doe",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "2005",+                "t": "Str"+              },+              {+                "c": ",",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "32",+                "t": "Str"+              },+              {+                "c": ")",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": ".",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        [+          "",+          [+            "references"+          ],+          []+        ],+        [+          {+            "c": [+              1,+              [+                "references",+                [],+                []+              ],+              [+                {+                  "c": "References",+                  "t": "Str"+                }+              ]+            ],+            "t": "Header"+          },+          {+            "c": [+              {+                "c": "Doe,",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "John.",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "2005.",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": [+                  {+                    "c": "First",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "Book",+                    "t": "Str"+                  }+                ],+                "t": "Emph"+              },+              {+                "c": ".",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "Cambridge:",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "Cambridge",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "University",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "Press",+                "t": "Str"+              },+              {+                "c": ".",+                "t": "Str"+              }+            ],+            "t": "Para"+          },+          {+            "c": [+              {+                "c": "———.",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "2006.",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "“",+                "t": "Str"+              },+              {+                "c": "Article",+                "t": "Str"+              },+              {+                "c": ".",+                "t": "Str"+              },+              {+                "c": "”",+                "t": "Str"+              },+              {+                "c": "",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": [+                  {+                    "c": "Journal",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "of",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "Generic",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "Studies",+                    "t": "Str"+                  }+                ],+                "t": "Emph"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "6:",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "33–34",+                "t": "Str"+              },+              {+                "c": ".",+                "t": "Str"+              }+            ],+            "t": "Para"+          },+          {+            "c": [+              {+                "c": "Doe,",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "John,",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "and",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "Jenny",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "Roe.",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "2007.",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "“",+                "t": "Str"+              },+              {+                "c": "Why",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "Water",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "Is",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "Wet",+                "t": "Str"+              },+              {+                "c": ".",+                "t": "Str"+              },+              {+                "c": "”",+                "t": "Str"+              },+              {+                "c": "",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "In",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": [+                  {+                    "c": "Third",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "Book",+                    "t": "Str"+                  }+                ],+                "t": "Emph"+              },+              {+                "c": ",",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "edited",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "by",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "Sam",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "Smith.",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "Oxford:",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "Oxford",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "University",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "Press",+                "t": "Str"+              },+              {+                "c": ".",+                "t": "Str"+              }+            ],+            "t": "Para"+          }+        ]+      ],+      "t": "Div"     }   ] ]
tests/chicago-author-date.in.json view
@@ -1,1117 +1,1391 @@ [   {     "unMeta": {-      "bibliography": {-        "MetaInlines": [-          {-            "Str": "tests/biblio.bib"-          }-        ]-      },-      "csl": {-        "MetaInlines": [-          {-            "Str": "tests/chicago-author-date.csl"-          }-        ]-      }-    }-  },-  [-    {-      "Header": [-        1,-        [-          "pandoc-with-citeproc-hs",-          [],-          []-        ],-        [-          {-            "Str": "Pandoc"-          },-          {-            "Space": []-          },-          {-            "Str": "with"-          },-          {-            "Space": []-          },-          {-            "Str": "citeproc-hs"-          }-        ]-      ]-    },-    {-      "Para": [-        {-          "Cite": [-            [-              {-                "citationSuffix": [],-                "citationNoteNum": 0,-                "citationMode": {-                  "NormalCitation": []-                },-                "citationPrefix": [],-                "citationId": "nonexistent",-                "citationHash": 0-              }-            ],-            [-              {-                "Str": "???"-              }-            ]-          ]-        }-      ]-    },-    {-      "Para": [-        {-          "Cite": [-            [-              {-                "citationSuffix": [],-                "citationNoteNum": 0,-                "citationMode": {-                  "AuthorInText": []-                },-                "citationPrefix": [],-                "citationId": "nonexistent",-                "citationHash": 0-              }-            ],-            [-              {-                "Str": "???"-              }-            ]-          ]-        }-      ]-    },-    {-      "Para": [-        {-          "Cite": [-            [-              {-                "citationSuffix": [],-                "citationNoteNum": 0,-                "citationMode": {-                  "AuthorInText": []-                },-                "citationPrefix": [],-                "citationId": "item1",-                "citationHash": 0-              }-            ],-            [-              {-                "Str": "???"-              }-            ]-          ]-        },-        {-          "Space": []-        },-        {-          "Str": "says"-        },-        {-          "Space": []-        },-        {-          "Str": "blah."-        }-      ]-    },-    {-      "Para": [-        {-          "Cite": [-            [-              {-                "citationSuffix": [-                  {-                    "Str": "p."-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "30"-                  }-                ],-                "citationNoteNum": 0,-                "citationMode": {-                  "AuthorInText": []-                },-                "citationPrefix": [],-                "citationId": "item1",-                "citationHash": 0-              }-            ],-            [-              {-                "Str": "???"-              }-            ]-          ]-        },-        {-          "Space": []-        },-        {-          "Str": "says"-        },-        {-          "Space": []-        },-        {-          "Str": "blah."-        }-      ]-    },-    {-      "Para": [-        {-          "Cite": [-            [-              {-                "citationSuffix": [-                  {-                    "Str": "p."-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "30,"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "with"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "suffix"-                  }-                ],-                "citationNoteNum": 0,-                "citationMode": {-                  "AuthorInText": []-                },-                "citationPrefix": [],-                "citationId": "item1",-                "citationHash": 0-              }-            ],-            [-              {-                "Str": "???"-              }-            ]-          ]-        },-        {-          "Space": []-        },-        {-          "Str": "says"-        },-        {-          "Space": []-        },-        {-          "Str": "blah."-        }-      ]-    },-    {-      "Para": [-        {-          "Cite": [-            [-              {-                "citationSuffix": [],-                "citationNoteNum": 0,-                "citationMode": {-                  "AuthorInText": []-                },-                "citationPrefix": [],-                "citationId": "item1",-                "citationHash": 0-              },-              {-                "citationSuffix": [-                  {-                    "Space": []-                  },-                  {-                    "Str": "p."-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "30"-                  }-                ],-                "citationNoteNum": 0,-                "citationMode": {-                  "SuppressAuthor": []-                },-                "citationPrefix": [],-                "citationId": "item2",-                "citationHash": 0-              },-              {-                "citationSuffix": [],-                "citationNoteNum": 0,-                "citationMode": {-                  "NormalCitation": []-                },-                "citationPrefix": [-                  {-                    "Str": "see"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "also"-                  }-                ],-                "citationId": "пункт3",-                "citationHash": 0-              }-            ],-            [-              {-                "Str": "???"-              }-            ]-          ]-        },-        {-          "Space": []-        },-        {-          "Str": "says"-        },-        {-          "Space": []-        },-        {-          "Str": "blah."-        }-      ]-    },-    {-      "Para": [-        {-          "Str": "In"-        },-        {-          "Space": []-        },-        {-          "Str": "a"-        },-        {-          "Space": []-        },-        {-          "Str": "note."-        },-        {-          "Note": [-            {-              "Para": [-                {-                  "Cite": [-                    [-                      {-                        "citationSuffix": [-                          {-                            "Str": "p."-                          },-                          {-                            "Space": []-                          },-                          {-                            "Str": "12"-                          }-                        ],-                        "citationNoteNum": 0,-                        "citationMode": {-                          "AuthorInText": []-                        },-                        "citationPrefix": [],-                        "citationId": "пункт3",-                        "citationHash": 0-                      }-                    ],-                    [-                      {-                        "Str": "???"-                      }-                    ]-                  ]-                },-                {-                  "Space": []-                },-                {-                  "Str": "and"-                },-                {-                  "Space": []-                },-                {-                  "Str": "a"-                },-                {-                  "Space": []-                },-                {-                  "Str": "citation"-                },-                {-                  "Space": []-                },-                {-                  "Str": "without"-                },-                {-                  "Space": []-                },-                {-                  "Str": "locators"-                },-                {-                  "Space": []-                },-                {-                  "Cite": [-                    [-                      {-                        "citationSuffix": [],-                        "citationNoteNum": 0,-                        "citationMode": {-                          "NormalCitation": []-                        },-                        "citationPrefix": [],-                        "citationId": "пункт3",-                        "citationHash": 0-                      }-                    ],-                    [-                      {-                        "Str": "???"-                      }-                    ]-                  ]-                },-                {-                  "Str": "."-                }-              ]-            }-          ]-        }-      ]-    },-    {-      "Para": [-        {-          "Str": "A"-        },-        {-          "Space": []-        },-        {-          "Str": "citation"-        },-        {-          "Space": []-        },-        {-          "Str": "group"-        },-        {-          "Space": []-        },-        {-          "Cite": [-            [-              {-                "citationSuffix": [-                  {-                    "Space": []-                  },-                  {-                    "Str": "chap."-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "3"-                  }-                ],-                "citationNoteNum": 0,-                "citationMode": {-                  "NormalCitation": []-                },-                "citationPrefix": [-                  {-                    "Str": "see"-                  }-                ],-                "citationId": "item1",-                "citationHash": 0-              },-              {-                "citationSuffix": [-                  {-                    "Space": []-                  },-                  {-                    "Str": "p."-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "34-35"-                  }-                ],-                "citationNoteNum": 0,-                "citationMode": {-                  "NormalCitation": []-                },-                "citationPrefix": [-                  {-                    "Str": "also"-                  }-                ],-                "citationId": "пункт3",-                "citationHash": 0-              }-            ],-            [-              {-                "Str": "???"-              }-            ]-          ]-        },-        {-          "Str": "."-        }-      ]-    },-    {-      "Para": [-        {-          "Str": "Another"-        },-        {-          "Space": []-        },-        {-          "Str": "one"-        },-        {-          "Space": []-        },-        {-          "Cite": [-            [-              {-                "citationSuffix": [-                  {-                    "Space": []-                  },-                  {-                    "Str": "p."-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "34-35"-                  }-                ],-                "citationNoteNum": 0,-                "citationMode": {-                  "NormalCitation": []-                },-                "citationPrefix": [-                  {-                    "Str": "see"-                  }-                ],-                "citationId": "item1",-                "citationHash": 0-              }-            ],-            [-              {-                "Str": "???"-              }-            ]-          ]-        },-        {-          "Str": "."-        }-      ]-    },-    {-      "Para": [-        {-          "Str": "And"-        },-        {-          "Space": []-        },-        {-          "Str": "another"-        },-        {-          "Space": []-        },-        {-          "Str": "one"-        },-        {-          "Space": []-        },-        {-          "Str": "in"-        },-        {-          "Space": []-        },-        {-          "Str": "a"-        },-        {-          "Space": []-        },-        {-          "Str": "note."-        },-        {-          "Note": [-            {-              "Para": [-                {-                  "Str": "Some"-                },-                {-                  "Space": []-                },-                {-                  "Str": "citations"-                },-                {-                  "Space": []-                },-                {-                  "Cite": [-                    [-                      {-                        "citationSuffix": [-                          {-                            "Space": []-                          },-                          {-                            "Str": "chap."-                          },-                          {-                            "Space": []-                          },-                          {-                            "Str": "3"-                          }-                        ],-                        "citationNoteNum": 0,-                        "citationMode": {-                          "NormalCitation": []-                        },-                        "citationPrefix": [-                          {-                            "Str": "see"-                          }-                        ],-                        "citationId": "item1",-                        "citationHash": 0-                      },-                      {-                        "citationSuffix": [],-                        "citationNoteNum": 0,-                        "citationMode": {-                          "NormalCitation": []-                        },-                        "citationPrefix": [],-                        "citationId": "пункт3",-                        "citationHash": 0-                      },-                      {-                        "citationSuffix": [],-                        "citationNoteNum": 0,-                        "citationMode": {-                          "NormalCitation": []-                        },-                        "citationPrefix": [],-                        "citationId": "item2",-                        "citationHash": 0-                      }-                    ],-                    [-                      {-                        "Str": "???"-                      }-                    ]-                  ]-                },-                {-                  "Str": "."-                }-              ]-            }-          ]-        }-      ]-    },-    {-      "Para": [-        {-          "Str": "Citation"-        },-        {-          "Space": []-        },-        {-          "Str": "with"-        },-        {-          "Space": []-        },-        {-          "Str": "a"-        },-        {-          "Space": []-        },-        {-          "Str": "suffix"-        },-        {-          "Space": []-        },-        {-          "Str": "and"-        },-        {-          "Space": []-        },-        {-          "Str": "locator"-        },-        {-          "Space": []-        },-        {-          "Cite": [-            [-              {-                "citationSuffix": [-                  {-                    "Space": []-                  },-                  {-                    "Str": "pp."-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "33,"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "35-37,"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "and"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "nowhere"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "else"-                  }-                ],-                "citationNoteNum": 0,-                "citationMode": {-                  "NormalCitation": []-                },-                "citationPrefix": [],-                "citationId": "item1",-                "citationHash": 0-              }-            ],-            [-              {-                "Str": "???"-              }-            ]-          ]-        },-        {-          "Str": "."-        }-      ]-    },-    {-      "Para": [-        {-          "Str": "Citation"-        },-        {-          "Space": []-        },-        {-          "Str": "with"-        },-        {-          "Space": []-        },-        {-          "Str": "suffix"-        },-        {-          "Space": []-        },-        {-          "Str": "only"-        },-        {-          "Space": []-        },-        {-          "Cite": [-            [-              {-                "citationSuffix": [-                  {-                    "Space": []-                  },-                  {-                    "Str": "and"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "nowhere"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "else"-                  }-                ],-                "citationNoteNum": 0,-                "citationMode": {-                  "NormalCitation": []-                },-                "citationPrefix": [],-                "citationId": "item1",-                "citationHash": 0-              }-            ],-            [-              {-                "Str": "???"-              }-            ]-          ]-        },-        {-          "Str": "."-        }-      ]-    },-    {-      "Para": [-        {-          "Str": "Now"-        },-        {-          "Space": []-        },-        {-          "Str": "some"-        },-        {-          "Space": []-        },-        {-          "Str": "modifiers."-        },-        {-          "Note": [-            {-              "Para": [-                {-                  "Str": "Like"-                },-                {-                  "Space": []-                },-                {-                  "Str": "a"-                },-                {-                  "Space": []-                },-                {-                  "Str": "citation"-                },-                {-                  "Space": []-                },-                {-                  "Str": "without"-                },-                {-                  "Space": []-                },-                {-                  "Str": "author:"-                },-                {-                  "Space": []-                },-                {-                  "Cite": [-                    [-                      {-                        "citationSuffix": [],-                        "citationNoteNum": 0,-                        "citationMode": {-                          "SuppressAuthor": []-                        },-                        "citationPrefix": [],-                        "citationId": "item1",-                        "citationHash": 0-                      }-                    ],-                    [-                      {-                        "Str": "???"-                      }-                    ]-                  ]-                },-                {-                  "Str": ","-                },-                {-                  "Space": []-                },-                {-                  "Str": "and"-                },-                {-                  "Space": []-                },-                {-                  "Str": "now"-                },-                {-                  "Space": []-                },-                {-                  "Str": "Doe"-                },-                {-                  "Space": []-                },-                {-                  "Str": "with"-                },-                {-                  "Space": []-                },-                {-                  "Str": "a"-                },-                {-                  "Space": []-                },-                {-                  "Str": "locator"-                },-                {-                  "Space": []-                },-                {-                  "Cite": [-                    [-                      {-                        "citationSuffix": [-                          {-                            "Space": []-                          },-                          {-                            "Str": "p."-                          },-                          {-                            "Space": []-                          },-                          {-                            "Str": "44"-                          }-                        ],-                        "citationNoteNum": 0,-                        "citationMode": {-                          "SuppressAuthor": []-                        },-                        "citationPrefix": [],-                        "citationId": "item2",-                        "citationHash": 0-                      }-                    ],-                    [-                      {-                        "Str": "???"-                      }-                    ]-                  ]-                },-                {-                  "Str": "."-                }-              ]-            }-          ]-        }-      ]-    },-    {-      "Para": [-        {-          "Str": "With"-        },-        {-          "Space": []-        },-        {-          "Str": "some"-        },-        {-          "Space": []-        },-        {-          "Str": "markup"-        },-        {-          "Space": []-        },-        {-          "Cite": [-            [-              {-                "citationSuffix": [-                  {-                    "Space": []-                  },-                  {-                    "Str": "p."-                  },-                  {-                    "Space": []-                  },-                  {-                    "Strong": [-                      {-                        "Str": "32"-                      }-                    ]-                  }-                ],-                "citationNoteNum": 0,-                "citationMode": {-                  "NormalCitation": []-                },-                "citationPrefix": [-                  {-                    "Emph": [-                      {-                        "Str": "see"-                      }-                    ]-                  }-                ],-                "citationId": "item1",-                "citationHash": 0-              }-            ],-            [-              {-                "Str": "???"-              }-            ]-          ]-        },-        {-          "Str": "."-        }-      ]-    },-    {-      "Header": [-        1,-        [-          "references",-          [],-          []-        ],-        [-          {-            "Str": "References"-          }-        ]-      ]+      "csl": {+        "c": [+          {+            "c": "tests/chicago-author-date.csl",+            "t": "Str"+          }+        ],+        "t": "MetaInlines"+      },+      "bibliography": {+        "c": [+          {+            "c": "tests/biblio.bib",+            "t": "Str"+          }+        ],+        "t": "MetaInlines"+      }+    }+  },+  [+    {+      "c": [+        1,+        [+          "pandoc-with-citeproc-hs",+          [],+          []+        ],+        [+          {+            "c": "Pandoc",+            "t": "Str"+          },+          {+            "c": [],+            "t": "Space"+          },+          {+            "c": "with",+            "t": "Str"+          },+          {+            "c": [],+            "t": "Space"+          },+          {+            "c": "citeproc-hs",+            "t": "Str"+          }+        ]+      ],+      "t": "Header"+    },+    {+      "c": [+        {+          "c": [+            [+              {+                "citationId": "nonexistent",+                "citationSuffix": [],+                "citationHash": 0,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "NormalCitation"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "???",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": [+            [+              {+                "citationId": "nonexistent",+                "citationSuffix": [],+                "citationHash": 0,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "AuthorInText"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "???",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [],+                "citationHash": 0,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "AuthorInText"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "???",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "says",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "blah.",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [+                  {+                    "c": "p.",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "30",+                    "t": "Str"+                  }+                ],+                "citationHash": 0,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "AuthorInText"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "???",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "says",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "blah.",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [+                  {+                    "c": "p.",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "30,",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "with",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "suffix",+                    "t": "Str"+                  }+                ],+                "citationHash": 0,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "AuthorInText"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "???",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "says",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "blah.",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [],+                "citationHash": 0,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "AuthorInText"+                },+                "citationNoteNum": 0+              },+              {+                "citationId": "item2",+                "citationSuffix": [+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "p.",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "30",+                    "t": "Str"+                  }+                ],+                "citationHash": 0,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "SuppressAuthor"+                },+                "citationNoteNum": 0+              },+              {+                "citationId": "пункт3",+                "citationSuffix": [],+                "citationHash": 0,+                "citationPrefix": [+                  {+                    "c": "see",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "also",+                    "t": "Str"+                  }+                ],+                "citationMode": {+                  "c": [],+                  "t": "NormalCitation"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "???",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "says",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "blah.",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": "In",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "a",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "note.",+          "t": "Str"+        },+        {+          "c": [+            {+              "c": [+                {+                  "c": [+                    [+                      {+                        "citationId": "пункт3",+                        "citationSuffix": [+                          {+                            "c": "p.",+                            "t": "Str"+                          },+                          {+                            "c": [],+                            "t": "Space"+                          },+                          {+                            "c": "12",+                            "t": "Str"+                          }+                        ],+                        "citationHash": 0,+                        "citationPrefix": [],+                        "citationMode": {+                          "c": [],+                          "t": "AuthorInText"+                        },+                        "citationNoteNum": 0+                      }+                    ],+                    [+                      {+                        "c": "???",+                        "t": "Str"+                      }+                    ]+                  ],+                  "t": "Cite"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "and",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "a",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "citation",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "without",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "locators",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": [+                    [+                      {+                        "citationId": "пункт3",+                        "citationSuffix": [],+                        "citationHash": 0,+                        "citationPrefix": [],+                        "citationMode": {+                          "c": [],+                          "t": "NormalCitation"+                        },+                        "citationNoteNum": 0+                      }+                    ],+                    [+                      {+                        "c": "???",+                        "t": "Str"+                      }+                    ]+                  ],+                  "t": "Cite"+                },+                {+                  "c": ".",+                  "t": "Str"+                }+              ],+              "t": "Para"+            }+          ],+          "t": "Note"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": "A",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "citation",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "group",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "chap.",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "3",+                    "t": "Str"+                  }+                ],+                "citationHash": 0,+                "citationPrefix": [+                  {+                    "c": "see",+                    "t": "Str"+                  }+                ],+                "citationMode": {+                  "c": [],+                  "t": "NormalCitation"+                },+                "citationNoteNum": 0+              },+              {+                "citationId": "пункт3",+                "citationSuffix": [+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "p.",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "34-35",+                    "t": "Str"+                  }+                ],+                "citationHash": 0,+                "citationPrefix": [+                  {+                    "c": "also",+                    "t": "Str"+                  }+                ],+                "citationMode": {+                  "c": [],+                  "t": "NormalCitation"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "???",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": ".",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": "Another",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "one",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "p.",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "34-35",+                    "t": "Str"+                  }+                ],+                "citationHash": 0,+                "citationPrefix": [+                  {+                    "c": "see",+                    "t": "Str"+                  }+                ],+                "citationMode": {+                  "c": [],+                  "t": "NormalCitation"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "???",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": ".",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": "And",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "another",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "one",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "in",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "a",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "note.",+          "t": "Str"+        },+        {+          "c": [+            {+              "c": [+                {+                  "c": "Some",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "citations",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": [+                    [+                      {+                        "citationId": "item1",+                        "citationSuffix": [+                          {+                            "c": [],+                            "t": "Space"+                          },+                          {+                            "c": "chap.",+                            "t": "Str"+                          },+                          {+                            "c": [],+                            "t": "Space"+                          },+                          {+                            "c": "3",+                            "t": "Str"+                          }+                        ],+                        "citationHash": 0,+                        "citationPrefix": [+                          {+                            "c": "see",+                            "t": "Str"+                          }+                        ],+                        "citationMode": {+                          "c": [],+                          "t": "NormalCitation"+                        },+                        "citationNoteNum": 0+                      },+                      {+                        "citationId": "пункт3",+                        "citationSuffix": [],+                        "citationHash": 0,+                        "citationPrefix": [],+                        "citationMode": {+                          "c": [],+                          "t": "NormalCitation"+                        },+                        "citationNoteNum": 0+                      },+                      {+                        "citationId": "item2",+                        "citationSuffix": [],+                        "citationHash": 0,+                        "citationPrefix": [],+                        "citationMode": {+                          "c": [],+                          "t": "NormalCitation"+                        },+                        "citationNoteNum": 0+                      }+                    ],+                    [+                      {+                        "c": "???",+                        "t": "Str"+                      }+                    ]+                  ],+                  "t": "Cite"+                },+                {+                  "c": ".",+                  "t": "Str"+                }+              ],+              "t": "Para"+            }+          ],+          "t": "Note"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": "Citation",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "with",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "a",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "suffix",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "and",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "locator",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "pp.",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "33,",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "35-37,",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "and",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "nowhere",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "else",+                    "t": "Str"+                  }+                ],+                "citationHash": 0,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "NormalCitation"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "???",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": ".",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": "Citation",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "with",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "suffix",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "only",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "and",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "nowhere",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "else",+                    "t": "Str"+                  }+                ],+                "citationHash": 0,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "NormalCitation"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "???",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": ".",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": "Now",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "some",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "modifiers.",+          "t": "Str"+        },+        {+          "c": [+            {+              "c": [+                {+                  "c": "Like",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "a",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "citation",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "without",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "author:",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": [+                    [+                      {+                        "citationId": "item1",+                        "citationSuffix": [],+                        "citationHash": 0,+                        "citationPrefix": [],+                        "citationMode": {+                          "c": [],+                          "t": "SuppressAuthor"+                        },+                        "citationNoteNum": 0+                      }+                    ],+                    [+                      {+                        "c": "???",+                        "t": "Str"+                      }+                    ]+                  ],+                  "t": "Cite"+                },+                {+                  "c": ",",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "and",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "now",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "Doe",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "with",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "a",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "locator",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": [+                    [+                      {+                        "citationId": "item2",+                        "citationSuffix": [+                          {+                            "c": [],+                            "t": "Space"+                          },+                          {+                            "c": "p.",+                            "t": "Str"+                          },+                          {+                            "c": [],+                            "t": "Space"+                          },+                          {+                            "c": "44",+                            "t": "Str"+                          }+                        ],+                        "citationHash": 0,+                        "citationPrefix": [],+                        "citationMode": {+                          "c": [],+                          "t": "SuppressAuthor"+                        },+                        "citationNoteNum": 0+                      }+                    ],+                    [+                      {+                        "c": "???",+                        "t": "Str"+                      }+                    ]+                  ],+                  "t": "Cite"+                },+                {+                  "c": ".",+                  "t": "Str"+                }+              ],+              "t": "Para"+            }+          ],+          "t": "Note"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": "With",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "some",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "markup",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "p.",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": [+                      {+                        "c": "32",+                        "t": "Str"+                      }+                    ],+                    "t": "Strong"+                  }+                ],+                "citationHash": 0,+                "citationPrefix": [+                  {+                    "c": [+                      {+                        "c": "see",+                        "t": "Str"+                      }+                    ],+                    "t": "Emph"+                  }+                ],+                "citationMode": {+                  "c": [],+                  "t": "NormalCitation"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "???",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": ".",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        1,+        [+          "references",+          [],+          []+        ],+        [+          {+            "c": "References",+            "t": "Str"+          }+        ]+      ],+      "t": "Header"     }   ] ]
tests/ieee.expected.json view
@@ -1,1567 +1,1986 @@ [   {     "unMeta": {-      "bibliography": {-        "MetaInlines": [-          {-            "Str": "tests/biblio.bib"-          }-        ]-      },-      "csl": {-        "MetaInlines": [-          {-            "Str": "tests/ieee.csl"-          }-        ]-      }-    }-  },-  [-    {-      "Header": [-        1,-        [-          "pandoc-with-citeproc-hs",-          [],-          []-        ],-        [-          {-            "Str": "Pandoc"-          },-          {-            "Space": []-          },-          {-            "Str": "with"-          },-          {-            "Space": []-          },-          {-            "Str": "citeproc-hs"-          }-        ]-      ]-    },-    {-      "Para": [-        {-          "Cite": [-            [-              {-                "citationNoteNum": 0,-                "citationSuffix": [],-                "citationHash": 1,-                "citationMode": {-                  "NormalCitation": []-                },-                "citationPrefix": [],-                "citationId": "nonexistent"-              }-            ],-            [-              {-                "Str": "["-              },-              {-                "Str": "]"-              }-            ]-          ]-        }-      ]-    },-    {-      "Para": [-        {-          "Cite": [-            [-              {-                "citationNoteNum": 0,-                "citationSuffix": [],-                "citationHash": 2,-                "citationMode": {-                  "AuthorInText": []-                },-                "citationPrefix": [],-                "citationId": "nonexistent"-              }-            ],-            []-          ]-        }-      ]-    },-    {-      "Para": [-        {-          "Cite": [-            [-              {-                "citationNoteNum": 0,-                "citationSuffix": [],-                "citationHash": 3,-                "citationMode": {-                  "AuthorInText": []-                },-                "citationPrefix": [],-                "citationId": "item1"-              }-            ],-            [-              {-                "Str": "Reference"-              },-              {-                "Space": []-              },-              {-                "Str": "1"-              }-            ]-          ]-        },-        {-          "Space": []-        },-        {-          "Str": "says"-        },-        {-          "Space": []-        },-        {-          "Str": "blah."-        }-      ]-    },-    {-      "Para": [-        {-          "Cite": [-            [-              {-                "citationNoteNum": 0,-                "citationSuffix": [-                  {-                    "Str": "p."-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "30"-                  }-                ],-                "citationHash": 4,-                "citationMode": {-                  "AuthorInText": []-                },-                "citationPrefix": [],-                "citationId": "item1"-              }-            ],-            [-              {-                "Str": "Reference"-              },-              {-                "Space": []-              },-              {-                "Str": "1"-              }-            ]-          ]-        },-        {-          "Space": []-        },-        {-          "Str": "says"-        },-        {-          "Space": []-        },-        {-          "Str": "blah."-        }-      ]-    },-    {-      "Para": [-        {-          "Cite": [-            [-              {-                "citationNoteNum": 0,-                "citationSuffix": [-                  {-                    "Str": "p."-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "30,"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "with"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "suffix"-                  }-                ],-                "citationHash": 5,-                "citationMode": {-                  "AuthorInText": []-                },-                "citationPrefix": [],-                "citationId": "item1"-              }-            ],-            [-              {-                "Str": "Reference"-              },-              {-                "Space": []-              },-              {-                "Str": "1"-              }-            ]-          ]-        },-        {-          "Space": []-        },-        {-          "Str": "says"-        },-        {-          "Space": []-        },-        {-          "Str": "blah."-        }-      ]-    },-    {-      "Para": [-        {-          "Cite": [-            [-              {-                "citationNoteNum": 0,-                "citationSuffix": [],-                "citationHash": 6,-                "citationMode": {-                  "AuthorInText": []-                },-                "citationPrefix": [],-                "citationId": "item1"-              },-              {-                "citationNoteNum": 0,-                "citationSuffix": [-                  {-                    "Space": []-                  },-                  {-                    "Str": "p."-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "30"-                  }-                ],-                "citationHash": 7,-                "citationMode": {-                  "SuppressAuthor": []-                },-                "citationPrefix": [],-                "citationId": "item2"-              },-              {-                "citationNoteNum": 0,-                "citationSuffix": [],-                "citationHash": 8,-                "citationMode": {-                  "NormalCitation": []-                },-                "citationPrefix": [-                  {-                    "Str": "see"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "also"-                  }-                ],-                "citationId": "пункт3"-              }-            ],-            [-              {-                "Str": "Reference"-              },-              {-                "Space": []-              },-              {-                "Str": "1"-              },-              {-                "Space": []-              },-              {-                "Str": "["-              },-              {-                "Str": "3"-              },-              {-                "Str": "]"-              }-            ]-          ]-        },-        {-          "Space": []-        },-        {-          "Str": "says"-        },-        {-          "Space": []-        },-        {-          "Str": "blah."-        }-      ]-    },-    {-      "Para": [-        {-          "Str": "In"-        },-        {-          "Space": []-        },-        {-          "Str": "a"-        },-        {-          "Space": []-        },-        {-          "Str": "note."-        },-        {-          "Note": [-            {-              "Para": [-                {-                  "Cite": [-                    [-                      {-                        "citationNoteNum": 0,-                        "citationSuffix": [-                          {-                            "Str": "p."-                          },-                          {-                            "Space": []-                          },-                          {-                            "Str": "12"-                          }-                        ],-                        "citationHash": 9,-                        "citationMode": {-                          "AuthorInText": []-                        },-                        "citationPrefix": [],-                        "citationId": "пункт3"-                      }-                    ],-                    [-                      {-                        "Str": "Reference"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "3"-                      }-                    ]-                  ]-                },-                {-                  "Space": []-                },-                {-                  "Str": "and"-                },-                {-                  "Space": []-                },-                {-                  "Str": "a"-                },-                {-                  "Space": []-                },-                {-                  "Str": "citation"-                },-                {-                  "Space": []-                },-                {-                  "Str": "without"-                },-                {-                  "Space": []-                },-                {-                  "Str": "locators"-                },-                {-                  "Space": []-                },-                {-                  "Cite": [-                    [-                      {-                        "citationNoteNum": 0,-                        "citationSuffix": [],-                        "citationHash": 10,-                        "citationMode": {-                          "NormalCitation": []-                        },-                        "citationPrefix": [],-                        "citationId": "пункт3"-                      }-                    ],-                    [-                      {-                        "Str": "["-                      },-                      {-                        "Str": "3"-                      },-                      {-                        "Str": "]"-                      }-                    ]-                  ]-                },-                {-                  "Str": "."-                }-              ]-            }-          ]-        }-      ]-    },-    {-      "Para": [-        {-          "Str": "A"-        },-        {-          "Space": []-        },-        {-          "Str": "citation"-        },-        {-          "Space": []-        },-        {-          "Str": "group"-        },-        {-          "Space": []-        },-        {-          "Cite": [-            [-              {-                "citationNoteNum": 0,-                "citationSuffix": [-                  {-                    "Space": []-                  },-                  {-                    "Str": "chap."-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "3"-                  }-                ],-                "citationHash": 11,-                "citationMode": {-                  "NormalCitation": []-                },-                "citationPrefix": [-                  {-                    "Str": "see"-                  }-                ],-                "citationId": "item1"-              },-              {-                "citationNoteNum": 0,-                "citationSuffix": [-                  {-                    "Space": []-                  },-                  {-                    "Str": "p."-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "34-35"-                  }-                ],-                "citationHash": 12,-                "citationMode": {-                  "NormalCitation": []-                },-                "citationPrefix": [-                  {-                    "Str": "also"-                  }-                ],-                "citationId": "пункт3"-              }-            ],-            [-              {-                "Str": "["-              },-              {-                "Str": "1"-              },-              {-                "Str": "]"-              },-              {-                "Str": ","-              },-              {-                "Space": []-              },-              {-                "Str": "["-              },-              {-                "Str": "3"-              },-              {-                "Str": "]"-              }-            ]-          ]-        },-        {-          "Str": "."-        }-      ]-    },-    {-      "Para": [-        {-          "Str": "Another"-        },-        {-          "Space": []-        },-        {-          "Str": "one"-        },-        {-          "Space": []-        },-        {-          "Cite": [-            [-              {-                "citationNoteNum": 0,-                "citationSuffix": [-                  {-                    "Space": []-                  },-                  {-                    "Str": "p."-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "34-35"-                  }-                ],-                "citationHash": 13,-                "citationMode": {-                  "NormalCitation": []-                },-                "citationPrefix": [-                  {-                    "Str": "see"-                  }-                ],-                "citationId": "item1"-              }-            ],-            [-              {-                "Str": "["-              },-              {-                "Str": "1"-              },-              {-                "Str": "]"-              }-            ]-          ]-        },-        {-          "Str": "."-        }-      ]-    },-    {-      "Para": [-        {-          "Str": "And"-        },-        {-          "Space": []-        },-        {-          "Str": "another"-        },-        {-          "Space": []-        },-        {-          "Str": "one"-        },-        {-          "Space": []-        },-        {-          "Str": "in"-        },-        {-          "Space": []-        },-        {-          "Str": "a"-        },-        {-          "Space": []-        },-        {-          "Str": "note."-        },-        {-          "Note": [-            {-              "Para": [-                {-                  "Str": "Some"-                },-                {-                  "Space": []-                },-                {-                  "Str": "citations"-                },-                {-                  "Space": []-                },-                {-                  "Cite": [-                    [-                      {-                        "citationNoteNum": 0,-                        "citationSuffix": [-                          {-                            "Space": []-                          },-                          {-                            "Str": "chap."-                          },-                          {-                            "Space": []-                          },-                          {-                            "Str": "3"-                          }-                        ],-                        "citationHash": 14,-                        "citationMode": {-                          "NormalCitation": []-                        },-                        "citationPrefix": [-                          {-                            "Str": "see"-                          }-                        ],-                        "citationId": "item1"-                      },-                      {-                        "citationNoteNum": 0,-                        "citationSuffix": [],-                        "citationHash": 15,-                        "citationMode": {-                          "NormalCitation": []-                        },-                        "citationPrefix": [],-                        "citationId": "пункт3"-                      },-                      {-                        "citationNoteNum": 0,-                        "citationSuffix": [],-                        "citationHash": 16,-                        "citationMode": {-                          "NormalCitation": []-                        },-                        "citationPrefix": [],-                        "citationId": "item2"-                      }-                    ],-                    [-                      {-                        "Str": "["-                      },-                      {-                        "Str": "1"-                      },-                      {-                        "Str": "–"-                      },-                      {-                        "Str": "3"-                      },-                      {-                        "Str": "]"-                      }-                    ]-                  ]-                },-                {-                  "Str": "."-                }-              ]-            }-          ]-        }-      ]-    },-    {-      "Para": [-        {-          "Str": "Citation"-        },-        {-          "Space": []-        },-        {-          "Str": "with"-        },-        {-          "Space": []-        },-        {-          "Str": "a"-        },-        {-          "Space": []-        },-        {-          "Str": "suffix"-        },-        {-          "Space": []-        },-        {-          "Str": "and"-        },-        {-          "Space": []-        },-        {-          "Str": "locator"-        },-        {-          "Space": []-        },-        {-          "Cite": [-            [-              {-                "citationNoteNum": 0,-                "citationSuffix": [-                  {-                    "Space": []-                  },-                  {-                    "Str": "pp."-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "33,"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "35-37,"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "and"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "nowhere"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "else"-                  }-                ],-                "citationHash": 17,-                "citationMode": {-                  "NormalCitation": []-                },-                "citationPrefix": [],-                "citationId": "item1"-              }-            ],-            [-              {-                "Str": "["-              },-              {-                "Str": "1"-              },-              {-                "Str": "]"-              }-            ]-          ]-        },-        {-          "Str": "."-        }-      ]-    },-    {-      "Para": [-        {-          "Str": "Citation"-        },-        {-          "Space": []-        },-        {-          "Str": "with"-        },-        {-          "Space": []-        },-        {-          "Str": "suffix"-        },-        {-          "Space": []-        },-        {-          "Str": "only"-        },-        {-          "Space": []-        },-        {-          "Cite": [-            [-              {-                "citationNoteNum": 0,-                "citationSuffix": [-                  {-                    "Space": []-                  },-                  {-                    "Str": "and"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "nowhere"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "else"-                  }-                ],-                "citationHash": 18,-                "citationMode": {-                  "NormalCitation": []-                },-                "citationPrefix": [],-                "citationId": "item1"-              }-            ],-            [-              {-                "Str": "["-              },-              {-                "Str": "1"-              },-              {-                "Str": "]"-              }-            ]-          ]-        },-        {-          "Str": "."-        }-      ]-    },-    {-      "Para": [-        {-          "Str": "Now"-        },-        {-          "Space": []-        },-        {-          "Str": "some"-        },-        {-          "Space": []-        },-        {-          "Str": "modifiers."-        },-        {-          "Note": [-            {-              "Para": [-                {-                  "Str": "Like"-                },-                {-                  "Space": []-                },-                {-                  "Str": "a"-                },-                {-                  "Space": []-                },-                {-                  "Str": "citation"-                },-                {-                  "Space": []-                },-                {-                  "Str": "without"-                },-                {-                  "Space": []-                },-                {-                  "Str": "author:"-                },-                {-                  "Space": []-                },-                {-                  "Cite": [-                    [-                      {-                        "citationNoteNum": 0,-                        "citationSuffix": [],-                        "citationHash": 19,-                        "citationMode": {-                          "SuppressAuthor": []-                        },-                        "citationPrefix": [],-                        "citationId": "item1"-                      }-                    ],-                    [-                      {-                        "Str": "["-                      },-                      {-                        "Str": "1"-                      },-                      {-                        "Str": "]"-                      }-                    ]-                  ]-                },-                {-                  "Str": ","-                },-                {-                  "Space": []-                },-                {-                  "Str": "and"-                },-                {-                  "Space": []-                },-                {-                  "Str": "now"-                },-                {-                  "Space": []-                },-                {-                  "Str": "Doe"-                },-                {-                  "Space": []-                },-                {-                  "Str": "with"-                },-                {-                  "Space": []-                },-                {-                  "Str": "a"-                },-                {-                  "Space": []-                },-                {-                  "Str": "locator"-                },-                {-                  "Space": []-                },-                {-                  "Cite": [-                    [-                      {-                        "citationNoteNum": 0,-                        "citationSuffix": [-                          {-                            "Space": []-                          },-                          {-                            "Str": "p."-                          },-                          {-                            "Space": []-                          },-                          {-                            "Str": "44"-                          }-                        ],-                        "citationHash": 20,-                        "citationMode": {-                          "SuppressAuthor": []-                        },-                        "citationPrefix": [],-                        "citationId": "item2"-                      }-                    ],-                    [-                      {-                        "Str": "["-                      },-                      {-                        "Str": "2"-                      },-                      {-                        "Str": "]"-                      }-                    ]-                  ]-                },-                {-                  "Str": "."-                }-              ]-            }-          ]-        }-      ]-    },-    {-      "Para": [-        {-          "Str": "With"-        },-        {-          "Space": []-        },-        {-          "Str": "some"-        },-        {-          "Space": []-        },-        {-          "Str": "markup"-        },-        {-          "Space": []-        },-        {-          "Cite": [-            [-              {-                "citationNoteNum": 0,-                "citationSuffix": [-                  {-                    "Space": []-                  },-                  {-                    "Str": "p."-                  },-                  {-                    "Space": []-                  },-                  {-                    "Strong": [-                      {-                        "Str": "32"-                      }-                    ]-                  }-                ],-                "citationHash": 21,-                "citationMode": {-                  "NormalCitation": []-                },-                "citationPrefix": [-                  {-                    "Emph": [-                      {-                        "Str": "see"-                      }-                    ]-                  }-                ],-                "citationId": "item1"-              }-            ],-            [-              {-                "Str": "["-              },-              {-                "Str": "1"-              },-              {-                "Str": "]"-              }-            ]-          ]-        },-        {-          "Str": "."-        }-      ]-    },-    {-      "Div": [-        [-          "",-          [-            "references"-          ],-          []-        ],-        [-          {-            "Header": [-              1,-              [-                "references",-                [],-                []-              ],-              [-                {-                  "Str": "References"-                }-              ]-            ]-          },-          {-            "Para": [-              {-                "Str": "[1]"-              },-              {-                "Space": []-              },-              {-                "Str": "J."-              },-              {-                "Space": []-              },-              {-                "Str": "Doe,"-              },-              {-                "Space": []-              },-              {-                "Emph": [-                  {-                    "Str": "First"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "book"-                  }-                ]-              },-              {-                "Str": "."-              },-              {-                "Space": []-              },-              {-                "Str": "Cambridge:"-              },-              {-                "Space": []-              },-              {-                "Str": "Cambridge"-              },-              {-                "Space": []-              },-              {-                "Str": "University"-              },-              {-                "Space": []-              },-              {-                "Str": "Press,"-              },-              {-                "Space": []-              },-              {-                "Str": "2005"-              },-              {-                "Str": "."-              }-            ]-          },-          {-            "Para": [-              {-                "Str": "[2]"-              },-              {-                "Space": []-              },-              {-                "Str": "J."-              },-              {-                "Space": []-              },-              {-                "Str": "Doe,"-              },-              {-                "Space": []-              },-              {-                "Str": "“"-              },-              {-                "Str": "Article"-              },-              {-                "Str": ","-              },-              {-                "Str": "”"-              },-              {-                "Str": ""-              },-              {-                "Space": []-              },-              {-                "Emph": [-                  {-                    "Str": "Journal"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "of"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "Generic"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "Studies"-                  }-                ]-              },-              {-                "Str": ","-              },-              {-                "Space": []-              },-              {-                "Str": "vol."-              },-              {-                "Space": []-              },-              {-                "Str": "6,"-              },-              {-                "Space": []-              },-              {-                "Str": "pp."-              },-              {-                "Space": []-              },-              {-                "Str": "33–34,"-              },-              {-                "Space": []-              },-              {-                "Str": "2006"-              },-              {-                "Str": "."-              }-            ]-          },-          {-            "Para": [-              {-                "Str": "[3]"-              },-              {-                "Space": []-              },-              {-                "Str": "J."-              },-              {-                "Space": []-              },-              {-                "Str": "Doe"-              },-              {-                "Space": []-              },-              {-                "Str": "and"-              },-              {-                "Space": []-              },-              {-                "Str": "J."-              },-              {-                "Space": []-              },-              {-                "Str": "Roe,"-              },-              {-                "Space": []-              },-              {-                "Str": "“"-              },-              {-                "Str": "Why"-              },-              {-                "Space": []-              },-              {-                "Str": "water"-              },-              {-                "Space": []-              },-              {-                "Str": "is"-              },-              {-                "Space": []-              },-              {-                "Str": "wet"-              },-              {-                "Str": ","-              },-              {-                "Str": "”"-              },-              {-                "Str": ""-              },-              {-                "Space": []-              },-              {-                "Str": "in"-              },-              {-                "Space": []-              },-              {-                "Emph": [-                  {-                    "Str": "Third"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "book"-                  }-                ]-              },-              {-                "Str": ","-              },-              {-                "Space": []-              },-              {-                "Str": "S."-              },-              {-                "Space": []-              },-              {-                "Str": "Smith,"-              },-              {-                "Space": []-              },-              {-                "Str": "Ed."-              },-              {-                "Space": []-              },-              {-                "Str": "Oxford:"-              },-              {-                "Space": []-              },-              {-                "Str": "Oxford"-              },-              {-                "Space": []-              },-              {-                "Str": "University"-              },-              {-                "Space": []-              },-              {-                "Str": "Press,"-              },-              {-                "Space": []-              },-              {-                "Str": "2007"-              },-              {-                "Str": "."-              }-            ]-          }-        ]-      ]+      "csl": {+        "c": [+          {+            "c": "tests/ieee.csl",+            "t": "Str"+          }+        ],+        "t": "MetaInlines"+      },+      "bibliography": {+        "c": [+          {+            "c": "tests/biblio.bib",+            "t": "Str"+          }+        ],+        "t": "MetaInlines"+      }+    }+  },+  [+    {+      "c": [+        1,+        [+          "pandoc-with-citeproc-hs",+          [],+          []+        ],+        [+          {+            "c": "Pandoc",+            "t": "Str"+          },+          {+            "c": [],+            "t": "Space"+          },+          {+            "c": "with",+            "t": "Str"+          },+          {+            "c": [],+            "t": "Space"+          },+          {+            "c": "citeproc-hs",+            "t": "Str"+          }+        ]+      ],+      "t": "Header"+    },+    {+      "c": [+        {+          "c": [+            [+              {+                "citationId": "nonexistent",+                "citationSuffix": [],+                "citationHash": 1,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "NormalCitation"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "[",+                "t": "Str"+              },+              {+                "c": "]",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": [+            [+              {+                "citationId": "nonexistent",+                "citationSuffix": [],+                "citationHash": 2,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "AuthorInText"+                },+                "citationNoteNum": 0+              }+            ],+            []+          ],+          "t": "Cite"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [],+                "citationHash": 3,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "AuthorInText"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "Reference",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "1",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "says",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "blah.",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [+                  {+                    "c": "p.",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "30",+                    "t": "Str"+                  }+                ],+                "citationHash": 4,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "AuthorInText"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "Reference",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "1",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "says",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "blah.",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [+                  {+                    "c": "p.",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "30,",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "with",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "suffix",+                    "t": "Str"+                  }+                ],+                "citationHash": 5,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "AuthorInText"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "Reference",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "1",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "says",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "blah.",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [],+                "citationHash": 6,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "AuthorInText"+                },+                "citationNoteNum": 0+              },+              {+                "citationId": "item2",+                "citationSuffix": [+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "p.",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "30",+                    "t": "Str"+                  }+                ],+                "citationHash": 7,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "SuppressAuthor"+                },+                "citationNoteNum": 0+              },+              {+                "citationId": "пункт3",+                "citationSuffix": [],+                "citationHash": 8,+                "citationPrefix": [+                  {+                    "c": "see",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "also",+                    "t": "Str"+                  }+                ],+                "citationMode": {+                  "c": [],+                  "t": "NormalCitation"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "Reference",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "1",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "[",+                "t": "Str"+              },+              {+                "c": "3",+                "t": "Str"+              },+              {+                "c": "]",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "says",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "blah.",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": "In",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "a",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "note.",+          "t": "Str"+        },+        {+          "c": [+            {+              "c": [+                {+                  "c": [+                    [+                      {+                        "citationId": "пункт3",+                        "citationSuffix": [+                          {+                            "c": "p.",+                            "t": "Str"+                          },+                          {+                            "c": [],+                            "t": "Space"+                          },+                          {+                            "c": "12",+                            "t": "Str"+                          }+                        ],+                        "citationHash": 9,+                        "citationPrefix": [],+                        "citationMode": {+                          "c": [],+                          "t": "AuthorInText"+                        },+                        "citationNoteNum": 0+                      }+                    ],+                    [+                      {+                        "c": "Reference",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "3",+                        "t": "Str"+                      }+                    ]+                  ],+                  "t": "Cite"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "and",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "a",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "citation",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "without",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "locators",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": [+                    [+                      {+                        "citationId": "пункт3",+                        "citationSuffix": [],+                        "citationHash": 10,+                        "citationPrefix": [],+                        "citationMode": {+                          "c": [],+                          "t": "NormalCitation"+                        },+                        "citationNoteNum": 0+                      }+                    ],+                    [+                      {+                        "c": "[",+                        "t": "Str"+                      },+                      {+                        "c": "3",+                        "t": "Str"+                      },+                      {+                        "c": "]",+                        "t": "Str"+                      }+                    ]+                  ],+                  "t": "Cite"+                },+                {+                  "c": ".",+                  "t": "Str"+                }+              ],+              "t": "Para"+            }+          ],+          "t": "Note"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": "A",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "citation",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "group",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "chap.",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "3",+                    "t": "Str"+                  }+                ],+                "citationHash": 11,+                "citationPrefix": [+                  {+                    "c": "see",+                    "t": "Str"+                  }+                ],+                "citationMode": {+                  "c": [],+                  "t": "NormalCitation"+                },+                "citationNoteNum": 0+              },+              {+                "citationId": "пункт3",+                "citationSuffix": [+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "p.",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "34-35",+                    "t": "Str"+                  }+                ],+                "citationHash": 12,+                "citationPrefix": [+                  {+                    "c": "also",+                    "t": "Str"+                  }+                ],+                "citationMode": {+                  "c": [],+                  "t": "NormalCitation"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "[",+                "t": "Str"+              },+              {+                "c": "1",+                "t": "Str"+              },+              {+                "c": "]",+                "t": "Str"+              },+              {+                "c": ",",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "[",+                "t": "Str"+              },+              {+                "c": "3",+                "t": "Str"+              },+              {+                "c": "]",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": ".",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": "Another",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "one",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "p.",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "34-35",+                    "t": "Str"+                  }+                ],+                "citationHash": 13,+                "citationPrefix": [+                  {+                    "c": "see",+                    "t": "Str"+                  }+                ],+                "citationMode": {+                  "c": [],+                  "t": "NormalCitation"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "[",+                "t": "Str"+              },+              {+                "c": "1",+                "t": "Str"+              },+              {+                "c": "]",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": ".",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": "And",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "another",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "one",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "in",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "a",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "note.",+          "t": "Str"+        },+        {+          "c": [+            {+              "c": [+                {+                  "c": "Some",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "citations",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": [+                    [+                      {+                        "citationId": "item1",+                        "citationSuffix": [+                          {+                            "c": [],+                            "t": "Space"+                          },+                          {+                            "c": "chap.",+                            "t": "Str"+                          },+                          {+                            "c": [],+                            "t": "Space"+                          },+                          {+                            "c": "3",+                            "t": "Str"+                          }+                        ],+                        "citationHash": 14,+                        "citationPrefix": [+                          {+                            "c": "see",+                            "t": "Str"+                          }+                        ],+                        "citationMode": {+                          "c": [],+                          "t": "NormalCitation"+                        },+                        "citationNoteNum": 0+                      },+                      {+                        "citationId": "пункт3",+                        "citationSuffix": [],+                        "citationHash": 15,+                        "citationPrefix": [],+                        "citationMode": {+                          "c": [],+                          "t": "NormalCitation"+                        },+                        "citationNoteNum": 0+                      },+                      {+                        "citationId": "item2",+                        "citationSuffix": [],+                        "citationHash": 16,+                        "citationPrefix": [],+                        "citationMode": {+                          "c": [],+                          "t": "NormalCitation"+                        },+                        "citationNoteNum": 0+                      }+                    ],+                    [+                      {+                        "c": "[",+                        "t": "Str"+                      },+                      {+                        "c": "1",+                        "t": "Str"+                      },+                      {+                        "c": "–",+                        "t": "Str"+                      },+                      {+                        "c": "3",+                        "t": "Str"+                      },+                      {+                        "c": "]",+                        "t": "Str"+                      }+                    ]+                  ],+                  "t": "Cite"+                },+                {+                  "c": ".",+                  "t": "Str"+                }+              ],+              "t": "Para"+            }+          ],+          "t": "Note"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": "Citation",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "with",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "a",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "suffix",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "and",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "locator",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "pp.",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "33,",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "35-37,",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "and",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "nowhere",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "else",+                    "t": "Str"+                  }+                ],+                "citationHash": 17,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "NormalCitation"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "[",+                "t": "Str"+              },+              {+                "c": "1",+                "t": "Str"+              },+              {+                "c": "]",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": ".",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": "Citation",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "with",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "suffix",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "only",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "and",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "nowhere",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "else",+                    "t": "Str"+                  }+                ],+                "citationHash": 18,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "NormalCitation"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "[",+                "t": "Str"+              },+              {+                "c": "1",+                "t": "Str"+              },+              {+                "c": "]",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": ".",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": "Now",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "some",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "modifiers.",+          "t": "Str"+        },+        {+          "c": [+            {+              "c": [+                {+                  "c": "Like",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "a",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "citation",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "without",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "author:",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": [+                    [+                      {+                        "citationId": "item1",+                        "citationSuffix": [],+                        "citationHash": 19,+                        "citationPrefix": [],+                        "citationMode": {+                          "c": [],+                          "t": "SuppressAuthor"+                        },+                        "citationNoteNum": 0+                      }+                    ],+                    [+                      {+                        "c": "[",+                        "t": "Str"+                      },+                      {+                        "c": "1",+                        "t": "Str"+                      },+                      {+                        "c": "]",+                        "t": "Str"+                      }+                    ]+                  ],+                  "t": "Cite"+                },+                {+                  "c": ",",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "and",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "now",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "Doe",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "with",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "a",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "locator",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": [+                    [+                      {+                        "citationId": "item2",+                        "citationSuffix": [+                          {+                            "c": [],+                            "t": "Space"+                          },+                          {+                            "c": "p.",+                            "t": "Str"+                          },+                          {+                            "c": [],+                            "t": "Space"+                          },+                          {+                            "c": "44",+                            "t": "Str"+                          }+                        ],+                        "citationHash": 20,+                        "citationPrefix": [],+                        "citationMode": {+                          "c": [],+                          "t": "SuppressAuthor"+                        },+                        "citationNoteNum": 0+                      }+                    ],+                    [+                      {+                        "c": "[",+                        "t": "Str"+                      },+                      {+                        "c": "2",+                        "t": "Str"+                      },+                      {+                        "c": "]",+                        "t": "Str"+                      }+                    ]+                  ],+                  "t": "Cite"+                },+                {+                  "c": ".",+                  "t": "Str"+                }+              ],+              "t": "Para"+            }+          ],+          "t": "Note"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": "With",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "some",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "markup",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "p.",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": [+                      {+                        "c": "32",+                        "t": "Str"+                      }+                    ],+                    "t": "Strong"+                  }+                ],+                "citationHash": 21,+                "citationPrefix": [+                  {+                    "c": [+                      {+                        "c": "see",+                        "t": "Str"+                      }+                    ],+                    "t": "Emph"+                  }+                ],+                "citationMode": {+                  "c": [],+                  "t": "NormalCitation"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "[",+                "t": "Str"+              },+              {+                "c": "1",+                "t": "Str"+              },+              {+                "c": "]",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": ".",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        [+          "",+          [+            "references"+          ],+          []+        ],+        [+          {+            "c": [+              1,+              [+                "references",+                [],+                []+              ],+              [+                {+                  "c": "References",+                  "t": "Str"+                }+              ]+            ],+            "t": "Header"+          },+          {+            "c": [+              {+                "c": "[1]",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "J.",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "Doe,",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": [+                  {+                    "c": "First",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "book",+                    "t": "Str"+                  }+                ],+                "t": "Emph"+              },+              {+                "c": ".",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "Cambridge:",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "Cambridge",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "University",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "Press,",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "2005",+                "t": "Str"+              },+              {+                "c": ".",+                "t": "Str"+              }+            ],+            "t": "Para"+          },+          {+            "c": [+              {+                "c": "[2]",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "J.",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "Doe,",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "“",+                "t": "Str"+              },+              {+                "c": "Article",+                "t": "Str"+              },+              {+                "c": ",",+                "t": "Str"+              },+              {+                "c": "”",+                "t": "Str"+              },+              {+                "c": "",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": [+                  {+                    "c": "Journal",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "of",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "Generic",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "Studies",+                    "t": "Str"+                  }+                ],+                "t": "Emph"+              },+              {+                "c": ",",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "vol.",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "6,",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "pp.",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "33–34,",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "2006",+                "t": "Str"+              },+              {+                "c": ".",+                "t": "Str"+              }+            ],+            "t": "Para"+          },+          {+            "c": [+              {+                "c": "[3]",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "J.",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "Doe",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "and",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "J.",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "Roe,",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "“",+                "t": "Str"+              },+              {+                "c": "Why",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "water",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "is",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "wet",+                "t": "Str"+              },+              {+                "c": ",",+                "t": "Str"+              },+              {+                "c": "”",+                "t": "Str"+              },+              {+                "c": "",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "in",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": [+                  {+                    "c": "Third",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "book",+                    "t": "Str"+                  }+                ],+                "t": "Emph"+              },+              {+                "c": ",",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "S.",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "Smith,",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "Ed.",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "Oxford:",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "Oxford",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "University",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "Press,",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "2007",+                "t": "Str"+              },+              {+                "c": ".",+                "t": "Str"+              }+            ],+            "t": "Para"+          }+        ]+      ],+      "t": "Div"     }   ] ]
tests/ieee.in.json view
@@ -1,1117 +1,1391 @@ [   {     "unMeta": {-      "bibliography": {-        "MetaInlines": [-          {-            "Str": "tests/biblio.bib"-          }-        ]-      },-      "csl": {-        "MetaInlines": [-          {-            "Str": "tests/ieee.csl"-          }-        ]-      }-    }-  },-  [-    {-      "Header": [-        1,-        [-          "pandoc-with-citeproc-hs",-          [],-          []-        ],-        [-          {-            "Str": "Pandoc"-          },-          {-            "Space": []-          },-          {-            "Str": "with"-          },-          {-            "Space": []-          },-          {-            "Str": "citeproc-hs"-          }-        ]-      ]-    },-    {-      "Para": [-        {-          "Cite": [-            [-              {-                "citationSuffix": [],-                "citationNoteNum": 0,-                "citationMode": {-                  "NormalCitation": []-                },-                "citationPrefix": [],-                "citationId": "nonexistent",-                "citationHash": 0-              }-            ],-            [-              {-                "Str": "???"-              }-            ]-          ]-        }-      ]-    },-    {-      "Para": [-        {-          "Cite": [-            [-              {-                "citationSuffix": [],-                "citationNoteNum": 0,-                "citationMode": {-                  "AuthorInText": []-                },-                "citationPrefix": [],-                "citationId": "nonexistent",-                "citationHash": 0-              }-            ],-            [-              {-                "Str": "???"-              }-            ]-          ]-        }-      ]-    },-    {-      "Para": [-        {-          "Cite": [-            [-              {-                "citationSuffix": [],-                "citationNoteNum": 0,-                "citationMode": {-                  "AuthorInText": []-                },-                "citationPrefix": [],-                "citationId": "item1",-                "citationHash": 0-              }-            ],-            [-              {-                "Str": "???"-              }-            ]-          ]-        },-        {-          "Space": []-        },-        {-          "Str": "says"-        },-        {-          "Space": []-        },-        {-          "Str": "blah."-        }-      ]-    },-    {-      "Para": [-        {-          "Cite": [-            [-              {-                "citationSuffix": [-                  {-                    "Str": "p."-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "30"-                  }-                ],-                "citationNoteNum": 0,-                "citationMode": {-                  "AuthorInText": []-                },-                "citationPrefix": [],-                "citationId": "item1",-                "citationHash": 0-              }-            ],-            [-              {-                "Str": "???"-              }-            ]-          ]-        },-        {-          "Space": []-        },-        {-          "Str": "says"-        },-        {-          "Space": []-        },-        {-          "Str": "blah."-        }-      ]-    },-    {-      "Para": [-        {-          "Cite": [-            [-              {-                "citationSuffix": [-                  {-                    "Str": "p."-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "30,"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "with"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "suffix"-                  }-                ],-                "citationNoteNum": 0,-                "citationMode": {-                  "AuthorInText": []-                },-                "citationPrefix": [],-                "citationId": "item1",-                "citationHash": 0-              }-            ],-            [-              {-                "Str": "???"-              }-            ]-          ]-        },-        {-          "Space": []-        },-        {-          "Str": "says"-        },-        {-          "Space": []-        },-        {-          "Str": "blah."-        }-      ]-    },-    {-      "Para": [-        {-          "Cite": [-            [-              {-                "citationSuffix": [],-                "citationNoteNum": 0,-                "citationMode": {-                  "AuthorInText": []-                },-                "citationPrefix": [],-                "citationId": "item1",-                "citationHash": 0-              },-              {-                "citationSuffix": [-                  {-                    "Space": []-                  },-                  {-                    "Str": "p."-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "30"-                  }-                ],-                "citationNoteNum": 0,-                "citationMode": {-                  "SuppressAuthor": []-                },-                "citationPrefix": [],-                "citationId": "item2",-                "citationHash": 0-              },-              {-                "citationSuffix": [],-                "citationNoteNum": 0,-                "citationMode": {-                  "NormalCitation": []-                },-                "citationPrefix": [-                  {-                    "Str": "see"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "also"-                  }-                ],-                "citationId": "пункт3",-                "citationHash": 0-              }-            ],-            [-              {-                "Str": "???"-              }-            ]-          ]-        },-        {-          "Space": []-        },-        {-          "Str": "says"-        },-        {-          "Space": []-        },-        {-          "Str": "blah."-        }-      ]-    },-    {-      "Para": [-        {-          "Str": "In"-        },-        {-          "Space": []-        },-        {-          "Str": "a"-        },-        {-          "Space": []-        },-        {-          "Str": "note."-        },-        {-          "Note": [-            {-              "Para": [-                {-                  "Cite": [-                    [-                      {-                        "citationSuffix": [-                          {-                            "Str": "p."-                          },-                          {-                            "Space": []-                          },-                          {-                            "Str": "12"-                          }-                        ],-                        "citationNoteNum": 0,-                        "citationMode": {-                          "AuthorInText": []-                        },-                        "citationPrefix": [],-                        "citationId": "пункт3",-                        "citationHash": 0-                      }-                    ],-                    [-                      {-                        "Str": "???"-                      }-                    ]-                  ]-                },-                {-                  "Space": []-                },-                {-                  "Str": "and"-                },-                {-                  "Space": []-                },-                {-                  "Str": "a"-                },-                {-                  "Space": []-                },-                {-                  "Str": "citation"-                },-                {-                  "Space": []-                },-                {-                  "Str": "without"-                },-                {-                  "Space": []-                },-                {-                  "Str": "locators"-                },-                {-                  "Space": []-                },-                {-                  "Cite": [-                    [-                      {-                        "citationSuffix": [],-                        "citationNoteNum": 0,-                        "citationMode": {-                          "NormalCitation": []-                        },-                        "citationPrefix": [],-                        "citationId": "пункт3",-                        "citationHash": 0-                      }-                    ],-                    [-                      {-                        "Str": "???"-                      }-                    ]-                  ]-                },-                {-                  "Str": "."-                }-              ]-            }-          ]-        }-      ]-    },-    {-      "Para": [-        {-          "Str": "A"-        },-        {-          "Space": []-        },-        {-          "Str": "citation"-        },-        {-          "Space": []-        },-        {-          "Str": "group"-        },-        {-          "Space": []-        },-        {-          "Cite": [-            [-              {-                "citationSuffix": [-                  {-                    "Space": []-                  },-                  {-                    "Str": "chap."-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "3"-                  }-                ],-                "citationNoteNum": 0,-                "citationMode": {-                  "NormalCitation": []-                },-                "citationPrefix": [-                  {-                    "Str": "see"-                  }-                ],-                "citationId": "item1",-                "citationHash": 0-              },-              {-                "citationSuffix": [-                  {-                    "Space": []-                  },-                  {-                    "Str": "p."-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "34-35"-                  }-                ],-                "citationNoteNum": 0,-                "citationMode": {-                  "NormalCitation": []-                },-                "citationPrefix": [-                  {-                    "Str": "also"-                  }-                ],-                "citationId": "пункт3",-                "citationHash": 0-              }-            ],-            [-              {-                "Str": "???"-              }-            ]-          ]-        },-        {-          "Str": "."-        }-      ]-    },-    {-      "Para": [-        {-          "Str": "Another"-        },-        {-          "Space": []-        },-        {-          "Str": "one"-        },-        {-          "Space": []-        },-        {-          "Cite": [-            [-              {-                "citationSuffix": [-                  {-                    "Space": []-                  },-                  {-                    "Str": "p."-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "34-35"-                  }-                ],-                "citationNoteNum": 0,-                "citationMode": {-                  "NormalCitation": []-                },-                "citationPrefix": [-                  {-                    "Str": "see"-                  }-                ],-                "citationId": "item1",-                "citationHash": 0-              }-            ],-            [-              {-                "Str": "???"-              }-            ]-          ]-        },-        {-          "Str": "."-        }-      ]-    },-    {-      "Para": [-        {-          "Str": "And"-        },-        {-          "Space": []-        },-        {-          "Str": "another"-        },-        {-          "Space": []-        },-        {-          "Str": "one"-        },-        {-          "Space": []-        },-        {-          "Str": "in"-        },-        {-          "Space": []-        },-        {-          "Str": "a"-        },-        {-          "Space": []-        },-        {-          "Str": "note."-        },-        {-          "Note": [-            {-              "Para": [-                {-                  "Str": "Some"-                },-                {-                  "Space": []-                },-                {-                  "Str": "citations"-                },-                {-                  "Space": []-                },-                {-                  "Cite": [-                    [-                      {-                        "citationSuffix": [-                          {-                            "Space": []-                          },-                          {-                            "Str": "chap."-                          },-                          {-                            "Space": []-                          },-                          {-                            "Str": "3"-                          }-                        ],-                        "citationNoteNum": 0,-                        "citationMode": {-                          "NormalCitation": []-                        },-                        "citationPrefix": [-                          {-                            "Str": "see"-                          }-                        ],-                        "citationId": "item1",-                        "citationHash": 0-                      },-                      {-                        "citationSuffix": [],-                        "citationNoteNum": 0,-                        "citationMode": {-                          "NormalCitation": []-                        },-                        "citationPrefix": [],-                        "citationId": "пункт3",-                        "citationHash": 0-                      },-                      {-                        "citationSuffix": [],-                        "citationNoteNum": 0,-                        "citationMode": {-                          "NormalCitation": []-                        },-                        "citationPrefix": [],-                        "citationId": "item2",-                        "citationHash": 0-                      }-                    ],-                    [-                      {-                        "Str": "???"-                      }-                    ]-                  ]-                },-                {-                  "Str": "."-                }-              ]-            }-          ]-        }-      ]-    },-    {-      "Para": [-        {-          "Str": "Citation"-        },-        {-          "Space": []-        },-        {-          "Str": "with"-        },-        {-          "Space": []-        },-        {-          "Str": "a"-        },-        {-          "Space": []-        },-        {-          "Str": "suffix"-        },-        {-          "Space": []-        },-        {-          "Str": "and"-        },-        {-          "Space": []-        },-        {-          "Str": "locator"-        },-        {-          "Space": []-        },-        {-          "Cite": [-            [-              {-                "citationSuffix": [-                  {-                    "Space": []-                  },-                  {-                    "Str": "pp."-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "33,"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "35-37,"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "and"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "nowhere"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "else"-                  }-                ],-                "citationNoteNum": 0,-                "citationMode": {-                  "NormalCitation": []-                },-                "citationPrefix": [],-                "citationId": "item1",-                "citationHash": 0-              }-            ],-            [-              {-                "Str": "???"-              }-            ]-          ]-        },-        {-          "Str": "."-        }-      ]-    },-    {-      "Para": [-        {-          "Str": "Citation"-        },-        {-          "Space": []-        },-        {-          "Str": "with"-        },-        {-          "Space": []-        },-        {-          "Str": "suffix"-        },-        {-          "Space": []-        },-        {-          "Str": "only"-        },-        {-          "Space": []-        },-        {-          "Cite": [-            [-              {-                "citationSuffix": [-                  {-                    "Space": []-                  },-                  {-                    "Str": "and"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "nowhere"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "else"-                  }-                ],-                "citationNoteNum": 0,-                "citationMode": {-                  "NormalCitation": []-                },-                "citationPrefix": [],-                "citationId": "item1",-                "citationHash": 0-              }-            ],-            [-              {-                "Str": "???"-              }-            ]-          ]-        },-        {-          "Str": "."-        }-      ]-    },-    {-      "Para": [-        {-          "Str": "Now"-        },-        {-          "Space": []-        },-        {-          "Str": "some"-        },-        {-          "Space": []-        },-        {-          "Str": "modifiers."-        },-        {-          "Note": [-            {-              "Para": [-                {-                  "Str": "Like"-                },-                {-                  "Space": []-                },-                {-                  "Str": "a"-                },-                {-                  "Space": []-                },-                {-                  "Str": "citation"-                },-                {-                  "Space": []-                },-                {-                  "Str": "without"-                },-                {-                  "Space": []-                },-                {-                  "Str": "author:"-                },-                {-                  "Space": []-                },-                {-                  "Cite": [-                    [-                      {-                        "citationSuffix": [],-                        "citationNoteNum": 0,-                        "citationMode": {-                          "SuppressAuthor": []-                        },-                        "citationPrefix": [],-                        "citationId": "item1",-                        "citationHash": 0-                      }-                    ],-                    [-                      {-                        "Str": "???"-                      }-                    ]-                  ]-                },-                {-                  "Str": ","-                },-                {-                  "Space": []-                },-                {-                  "Str": "and"-                },-                {-                  "Space": []-                },-                {-                  "Str": "now"-                },-                {-                  "Space": []-                },-                {-                  "Str": "Doe"-                },-                {-                  "Space": []-                },-                {-                  "Str": "with"-                },-                {-                  "Space": []-                },-                {-                  "Str": "a"-                },-                {-                  "Space": []-                },-                {-                  "Str": "locator"-                },-                {-                  "Space": []-                },-                {-                  "Cite": [-                    [-                      {-                        "citationSuffix": [-                          {-                            "Space": []-                          },-                          {-                            "Str": "p."-                          },-                          {-                            "Space": []-                          },-                          {-                            "Str": "44"-                          }-                        ],-                        "citationNoteNum": 0,-                        "citationMode": {-                          "SuppressAuthor": []-                        },-                        "citationPrefix": [],-                        "citationId": "item2",-                        "citationHash": 0-                      }-                    ],-                    [-                      {-                        "Str": "???"-                      }-                    ]-                  ]-                },-                {-                  "Str": "."-                }-              ]-            }-          ]-        }-      ]-    },-    {-      "Para": [-        {-          "Str": "With"-        },-        {-          "Space": []-        },-        {-          "Str": "some"-        },-        {-          "Space": []-        },-        {-          "Str": "markup"-        },-        {-          "Space": []-        },-        {-          "Cite": [-            [-              {-                "citationSuffix": [-                  {-                    "Space": []-                  },-                  {-                    "Str": "p."-                  },-                  {-                    "Space": []-                  },-                  {-                    "Strong": [-                      {-                        "Str": "32"-                      }-                    ]-                  }-                ],-                "citationNoteNum": 0,-                "citationMode": {-                  "NormalCitation": []-                },-                "citationPrefix": [-                  {-                    "Emph": [-                      {-                        "Str": "see"-                      }-                    ]-                  }-                ],-                "citationId": "item1",-                "citationHash": 0-              }-            ],-            [-              {-                "Str": "???"-              }-            ]-          ]-        },-        {-          "Str": "."-        }-      ]-    },-    {-      "Header": [-        1,-        [-          "references",-          [],-          []-        ],-        [-          {-            "Str": "References"-          }-        ]-      ]+      "csl": {+        "c": [+          {+            "c": "tests/ieee.csl",+            "t": "Str"+          }+        ],+        "t": "MetaInlines"+      },+      "bibliography": {+        "c": [+          {+            "c": "tests/biblio.bib",+            "t": "Str"+          }+        ],+        "t": "MetaInlines"+      }+    }+  },+  [+    {+      "c": [+        1,+        [+          "pandoc-with-citeproc-hs",+          [],+          []+        ],+        [+          {+            "c": "Pandoc",+            "t": "Str"+          },+          {+            "c": [],+            "t": "Space"+          },+          {+            "c": "with",+            "t": "Str"+          },+          {+            "c": [],+            "t": "Space"+          },+          {+            "c": "citeproc-hs",+            "t": "Str"+          }+        ]+      ],+      "t": "Header"+    },+    {+      "c": [+        {+          "c": [+            [+              {+                "citationId": "nonexistent",+                "citationSuffix": [],+                "citationHash": 0,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "NormalCitation"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "???",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": [+            [+              {+                "citationId": "nonexistent",+                "citationSuffix": [],+                "citationHash": 0,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "AuthorInText"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "???",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [],+                "citationHash": 0,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "AuthorInText"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "???",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "says",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "blah.",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [+                  {+                    "c": "p.",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "30",+                    "t": "Str"+                  }+                ],+                "citationHash": 0,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "AuthorInText"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "???",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "says",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "blah.",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [+                  {+                    "c": "p.",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "30,",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "with",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "suffix",+                    "t": "Str"+                  }+                ],+                "citationHash": 0,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "AuthorInText"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "???",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "says",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "blah.",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [],+                "citationHash": 0,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "AuthorInText"+                },+                "citationNoteNum": 0+              },+              {+                "citationId": "item2",+                "citationSuffix": [+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "p.",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "30",+                    "t": "Str"+                  }+                ],+                "citationHash": 0,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "SuppressAuthor"+                },+                "citationNoteNum": 0+              },+              {+                "citationId": "пункт3",+                "citationSuffix": [],+                "citationHash": 0,+                "citationPrefix": [+                  {+                    "c": "see",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "also",+                    "t": "Str"+                  }+                ],+                "citationMode": {+                  "c": [],+                  "t": "NormalCitation"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "???",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "says",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "blah.",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": "In",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "a",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "note.",+          "t": "Str"+        },+        {+          "c": [+            {+              "c": [+                {+                  "c": [+                    [+                      {+                        "citationId": "пункт3",+                        "citationSuffix": [+                          {+                            "c": "p.",+                            "t": "Str"+                          },+                          {+                            "c": [],+                            "t": "Space"+                          },+                          {+                            "c": "12",+                            "t": "Str"+                          }+                        ],+                        "citationHash": 0,+                        "citationPrefix": [],+                        "citationMode": {+                          "c": [],+                          "t": "AuthorInText"+                        },+                        "citationNoteNum": 0+                      }+                    ],+                    [+                      {+                        "c": "???",+                        "t": "Str"+                      }+                    ]+                  ],+                  "t": "Cite"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "and",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "a",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "citation",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "without",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "locators",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": [+                    [+                      {+                        "citationId": "пункт3",+                        "citationSuffix": [],+                        "citationHash": 0,+                        "citationPrefix": [],+                        "citationMode": {+                          "c": [],+                          "t": "NormalCitation"+                        },+                        "citationNoteNum": 0+                      }+                    ],+                    [+                      {+                        "c": "???",+                        "t": "Str"+                      }+                    ]+                  ],+                  "t": "Cite"+                },+                {+                  "c": ".",+                  "t": "Str"+                }+              ],+              "t": "Para"+            }+          ],+          "t": "Note"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": "A",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "citation",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "group",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "chap.",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "3",+                    "t": "Str"+                  }+                ],+                "citationHash": 0,+                "citationPrefix": [+                  {+                    "c": "see",+                    "t": "Str"+                  }+                ],+                "citationMode": {+                  "c": [],+                  "t": "NormalCitation"+                },+                "citationNoteNum": 0+              },+              {+                "citationId": "пункт3",+                "citationSuffix": [+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "p.",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "34-35",+                    "t": "Str"+                  }+                ],+                "citationHash": 0,+                "citationPrefix": [+                  {+                    "c": "also",+                    "t": "Str"+                  }+                ],+                "citationMode": {+                  "c": [],+                  "t": "NormalCitation"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "???",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": ".",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": "Another",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "one",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "p.",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "34-35",+                    "t": "Str"+                  }+                ],+                "citationHash": 0,+                "citationPrefix": [+                  {+                    "c": "see",+                    "t": "Str"+                  }+                ],+                "citationMode": {+                  "c": [],+                  "t": "NormalCitation"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "???",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": ".",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": "And",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "another",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "one",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "in",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "a",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "note.",+          "t": "Str"+        },+        {+          "c": [+            {+              "c": [+                {+                  "c": "Some",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "citations",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": [+                    [+                      {+                        "citationId": "item1",+                        "citationSuffix": [+                          {+                            "c": [],+                            "t": "Space"+                          },+                          {+                            "c": "chap.",+                            "t": "Str"+                          },+                          {+                            "c": [],+                            "t": "Space"+                          },+                          {+                            "c": "3",+                            "t": "Str"+                          }+                        ],+                        "citationHash": 0,+                        "citationPrefix": [+                          {+                            "c": "see",+                            "t": "Str"+                          }+                        ],+                        "citationMode": {+                          "c": [],+                          "t": "NormalCitation"+                        },+                        "citationNoteNum": 0+                      },+                      {+                        "citationId": "пункт3",+                        "citationSuffix": [],+                        "citationHash": 0,+                        "citationPrefix": [],+                        "citationMode": {+                          "c": [],+                          "t": "NormalCitation"+                        },+                        "citationNoteNum": 0+                      },+                      {+                        "citationId": "item2",+                        "citationSuffix": [],+                        "citationHash": 0,+                        "citationPrefix": [],+                        "citationMode": {+                          "c": [],+                          "t": "NormalCitation"+                        },+                        "citationNoteNum": 0+                      }+                    ],+                    [+                      {+                        "c": "???",+                        "t": "Str"+                      }+                    ]+                  ],+                  "t": "Cite"+                },+                {+                  "c": ".",+                  "t": "Str"+                }+              ],+              "t": "Para"+            }+          ],+          "t": "Note"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": "Citation",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "with",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "a",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "suffix",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "and",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "locator",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "pp.",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "33,",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "35-37,",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "and",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "nowhere",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "else",+                    "t": "Str"+                  }+                ],+                "citationHash": 0,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "NormalCitation"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "???",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": ".",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": "Citation",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "with",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "suffix",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "only",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "and",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "nowhere",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "else",+                    "t": "Str"+                  }+                ],+                "citationHash": 0,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "NormalCitation"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "???",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": ".",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": "Now",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "some",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "modifiers.",+          "t": "Str"+        },+        {+          "c": [+            {+              "c": [+                {+                  "c": "Like",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "a",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "citation",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "without",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "author:",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": [+                    [+                      {+                        "citationId": "item1",+                        "citationSuffix": [],+                        "citationHash": 0,+                        "citationPrefix": [],+                        "citationMode": {+                          "c": [],+                          "t": "SuppressAuthor"+                        },+                        "citationNoteNum": 0+                      }+                    ],+                    [+                      {+                        "c": "???",+                        "t": "Str"+                      }+                    ]+                  ],+                  "t": "Cite"+                },+                {+                  "c": ",",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "and",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "now",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "Doe",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "with",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "a",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "locator",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": [+                    [+                      {+                        "citationId": "item2",+                        "citationSuffix": [+                          {+                            "c": [],+                            "t": "Space"+                          },+                          {+                            "c": "p.",+                            "t": "Str"+                          },+                          {+                            "c": [],+                            "t": "Space"+                          },+                          {+                            "c": "44",+                            "t": "Str"+                          }+                        ],+                        "citationHash": 0,+                        "citationPrefix": [],+                        "citationMode": {+                          "c": [],+                          "t": "SuppressAuthor"+                        },+                        "citationNoteNum": 0+                      }+                    ],+                    [+                      {+                        "c": "???",+                        "t": "Str"+                      }+                    ]+                  ],+                  "t": "Cite"+                },+                {+                  "c": ".",+                  "t": "Str"+                }+              ],+              "t": "Para"+            }+          ],+          "t": "Note"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": "With",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "some",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "markup",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "p.",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": [+                      {+                        "c": "32",+                        "t": "Str"+                      }+                    ],+                    "t": "Strong"+                  }+                ],+                "citationHash": 0,+                "citationPrefix": [+                  {+                    "c": [+                      {+                        "c": "see",+                        "t": "Str"+                      }+                    ],+                    "t": "Emph"+                  }+                ],+                "citationMode": {+                  "c": [],+                  "t": "NormalCitation"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "???",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": ".",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        1,+        [+          "references",+          [],+          []+        ],+        [+          {+            "c": "References",+            "t": "Str"+          }+        ]+      ],+      "t": "Header"     }   ] ]
tests/mhra.expected.json view
@@ -2,2810 +2,3528 @@   {     "unMeta": {       "csl": {-        "MetaInlines": [-          {-            "Str": "tests/mhra.csl"-          }-        ]-      },-      "references": {-        "MetaList": [-          {-            "MetaMap": {-              "author": {-                "MetaMap": {-                  "family": {-                    "MetaInlines": [-                      {-                        "Str": "Doe"-                      }-                    ]-                  },-                  "given": {-                    "MetaList": [-                      {-                        "MetaInlines": [-                          {-                            "Str": "John"-                          }-                        ]-                      }-                    ]-                  }-                }-              },-              "title": {-                "MetaInlines": [-                  {-                    "Str": "First"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "Book"-                  }-                ]-              },-              "id": {-                "MetaInlines": [-                  {-                    "Str": "item1"-                  }-                ]-              },-              "issued": {-                "MetaMap": {-                  "year": {-                    "MetaString": "2005"-                  }-                }-              },-              "publisher": {-                "MetaInlines": [-                  {-                    "Str": "Cambridge"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "University"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "Press"-                  }-                ]-              },-              "type": {-                "MetaInlines": [-                  {-                    "Str": "book"-                  }-                ]-              },-              "publisher-place": {-                "MetaInlines": [-                  {-                    "Str": "Cambridge"-                  }-                ]-              }-            }-          },-          {-            "MetaMap": {-              "author": {-                "MetaMap": {-                  "family": {-                    "MetaInlines": [-                      {-                        "Str": "Doe"-                      }-                    ]-                  },-                  "given": {-                    "MetaList": [-                      {-                        "MetaInlines": [-                          {-                            "Str": "John"-                          }-                        ]-                      }-                    ]-                  }-                }-              },-              "title": {-                "MetaInlines": [-                  {-                    "Str": "Article"-                  }-                ]-              },-              "page": {-                "MetaInlines": [-                  {-                    "Str": "33-34"-                  }-                ]-              },-              "id": {-                "MetaInlines": [-                  {-                    "Str": "item2"-                  }-                ]-              },-              "issued": {-                "MetaMap": {-                  "year": {-                    "MetaString": "2006"-                  }-                }-              },-              "type": {-                "MetaInlines": [-                  {-                    "Str": "article-journal"-                  }-                ]-              },-              "volume": {-                "MetaString": "6"-              },-              "container-title": {-                "MetaInlines": [-                  {-                    "Str": "Journal"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "of"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "Generic"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "Studies"-                  }-                ]-              }-            }-          },-          {-            "MetaMap": {-              "author": {-                "MetaList": [-                  {-                    "MetaMap": {-                      "family": {-                        "MetaInlines": [-                          {-                            "Str": "Doe"-                          }-                        ]-                      },-                      "given": {-                        "MetaList": [-                          {-                            "MetaInlines": [-                              {-                                "Str": "John"-                              }-                            ]-                          }-                        ]-                      }-                    }-                  },-                  {-                    "MetaMap": {-                      "family": {-                        "MetaInlines": [-                          {-                            "Str": "Roe"-                          }-                        ]-                      },-                      "given": {-                        "MetaList": [-                          {-                            "MetaInlines": [-                              {-                                "Str": "Jenny"-                              }-                            ]-                          }-                        ]-                      }-                    }-                  }-                ]-              },-              "editor": {-                "MetaMap": {-                  "family": {-                    "MetaInlines": [-                      {-                        "Str": "Smith"-                      }-                    ]-                  },-                  "given": {-                    "MetaList": [-                      {-                        "MetaInlines": [-                          {-                            "Str": "Sam"-                          }-                        ]-                      }-                    ]-                  }-                }-              },-              "title": {-                "MetaInlines": [-                  {-                    "Str": "Why"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "Water"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "Is"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "Wet"-                  }-                ]-              },-              "id": {-                "MetaInlines": [-                  {-                    "Str": "пункт3"-                  }-                ]-              },-              "issued": {-                "MetaMap": {-                  "year": {-                    "MetaString": "2007"-                  }-                }-              },-              "publisher": {-                "MetaInlines": [-                  {-                    "Str": "Oxford"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "University"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "Press"-                  }-                ]-              },-              "type": {-                "MetaInlines": [-                  {-                    "Str": "chapter"-                  }-                ]-              },-              "publisher-place": {-                "MetaInlines": [-                  {-                    "Str": "Oxford"-                  }-                ]-              },-              "container-title": {-                "MetaInlines": [-                  {-                    "Str": "Third"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "Book"-                  }-                ]-              }-            }-          }-        ]-      }-    }-  },-  [-    {-      "Header": [-        1,-        [-          "pandoc-with-citeproc-hs",-          [],-          []-        ],-        [-          {-            "Str": "Pandoc"-          },-          {-            "Space": []-          },-          {-            "Str": "with"-          },-          {-            "Space": []-          },-          {-            "Str": "citeproc-hs"-          }-        ]-      ]-    },-    {-      "Para": [-        {-          "Cite": [-            [-              {-                "citationNoteNum": 0,-                "citationSuffix": [],-                "citationHash": 1,-                "citationMode": {-                  "NormalCitation": []-                },-                "citationPrefix": [],-                "citationId": "nonexistent"-              }-            ],-            [-              {-                "Note": [-                  {-                    "Para": [-                      {-                        "Span": [-                          [-                            "",-                            [-                              "citeproc-not-found"-                            ],-                            [-                              [-                                "data-reference-id",-                                "nonexistent"-                              ]-                            ]-                          ],-                          [-                            {-                              "Strong": [-                                {-                                  "Str": "???"-                                }-                              ]-                            }-                          ]-                        ]-                      }-                    ]-                  }-                ]-              }-            ]-          ]-        }-      ]-    },-    {-      "Para": [-        {-          "Cite": [-            [-              {-                "citationNoteNum": 0,-                "citationSuffix": [],-                "citationHash": 2,-                "citationMode": {-                  "AuthorInText": []-                },-                "citationPrefix": [],-                "citationId": "nonexistent"-              }-            ],-            [-              {-                "Note": [-                  {-                    "Para": [-                      {-                        "Span": [-                          [-                            "",-                            [-                              "citeproc-no-output"-                            ],-                            []-                          ],-                          [-                            {-                              "Strong": [-                                {-                                  "Str": "???"-                                }-                              ]-                            }-                          ]-                        ]-                      }-                    ]-                  }-                ]-              }-            ]-          ]-        }-      ]-    },-    {-      "Para": [-        {-          "Cite": [-            [-              {-                "citationNoteNum": 0,-                "citationSuffix": [],-                "citationHash": 3,-                "citationMode": {-                  "AuthorInText": []-                },-                "citationPrefix": [],-                "citationId": "item1"-              }-            ],-            [-              {-                "Str": "John"-              },-              {-                "Space": []-              },-              {-                "Str": "Doe"-              },-              {-                "Note": [-                  {-                    "Para": [-                      {-                        "Emph": [-                          {-                            "Str": "First"-                          },-                          {-                            "Space": []-                          },-                          {-                            "Str": "Book"-                          }-                        ]-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "("-                      },-                      {-                        "Str": "Cambridge:"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "Cambridge"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "University"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "Press,"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "2005"-                      },-                      {-                        "Str": ")"-                      },-                      {-                        "Str": "."-                      }-                    ]-                  }-                ]-              }-            ]-          ]-        },-        {-          "Space": []-        },-        {-          "Str": "says"-        },-        {-          "Space": []-        },-        {-          "Str": "blah."-        }-      ]-    },-    {-      "Para": [-        {-          "Cite": [-            [-              {-                "citationNoteNum": 0,-                "citationSuffix": [-                  {-                    "Str": "p."-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "30"-                  }-                ],-                "citationHash": 4,-                "citationMode": {-                  "AuthorInText": []-                },-                "citationPrefix": [],-                "citationId": "item1"-              }-            ],-            [-              {-                "Str": "John"-              },-              {-                "Space": []-              },-              {-                "Str": "Doe"-              },-              {-                "Note": [-                  {-                    "Para": [-                      {-                        "Emph": [-                          {-                            "Str": "First"-                          },-                          {-                            "Space": []-                          },-                          {-                            "Str": "Book"-                          }-                        ]-                      },-                      {-                        "Str": ","-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "p."-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "30"-                      },-                      {-                        "Str": "."-                      }-                    ]-                  }-                ]-              }-            ]-          ]-        },-        {-          "Space": []-        },-        {-          "Str": "says"-        },-        {-          "Space": []-        },-        {-          "Str": "blah."-        }-      ]-    },-    {-      "Para": [-        {-          "Cite": [-            [-              {-                "citationNoteNum": 0,-                "citationSuffix": [-                  {-                    "Str": "p."-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "30,"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "with"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "suffix"-                  }-                ],-                "citationHash": 5,-                "citationMode": {-                  "AuthorInText": []-                },-                "citationPrefix": [],-                "citationId": "item1"-              }-            ],-            [-              {-                "Str": "John"-              },-              {-                "Space": []-              },-              {-                "Str": "Doe"-              },-              {-                "Note": [-                  {-                    "Para": [-                      {-                        "Emph": [-                          {-                            "Str": "First"-                          },-                          {-                            "Space": []-                          },-                          {-                            "Str": "Book"-                          }-                        ]-                      },-                      {-                        "Str": ","-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "p."-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "30"-                      },-                      {-                        "Str": ","-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "with"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "suffix"-                      },-                      {-                        "Str": "."-                      }-                    ]-                  }-                ]-              }-            ]-          ]-        },-        {-          "Space": []-        },-        {-          "Str": "says"-        },-        {-          "Space": []-        },-        {-          "Str": "blah."-        }-      ]-    },-    {-      "Para": [-        {-          "Cite": [-            [-              {-                "citationNoteNum": 0,-                "citationSuffix": [],-                "citationHash": 6,-                "citationMode": {-                  "AuthorInText": []-                },-                "citationPrefix": [],-                "citationId": "item1"-              },-              {-                "citationNoteNum": 0,-                "citationSuffix": [-                  {-                    "Space": []-                  },-                  {-                    "Str": "p."-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "30"-                  }-                ],-                "citationHash": 7,-                "citationMode": {-                  "SuppressAuthor": []-                },-                "citationPrefix": [],-                "citationId": "item2"-              },-              {-                "citationNoteNum": 0,-                "citationSuffix": [],-                "citationHash": 8,-                "citationMode": {-                  "NormalCitation": []-                },-                "citationPrefix": [-                  {-                    "Str": "see"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "also"-                  }-                ],-                "citationId": "пункт3"-              }-            ],-            [-              {-                "Str": "John"-              },-              {-                "Space": []-              },-              {-                "Str": "Doe"-              },-              {-                "Note": [-                  {-                    "Para": [-                      {-                        "Emph": [-                          {-                            "Str": "First"-                          },-                          {-                            "Space": []-                          },-                          {-                            "Str": "Book"-                          }-                        ]-                      },-                      {-                        "Str": ";"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "‘"-                      },-                      {-                        "Str": "Article"-                      },-                      {-                        "Str": "’"-                      },-                      {-                        "Str": ","-                      },-                      {-                        "Space": []-                      },-                      {-                        "Emph": [-                          {-                            "Str": "Journal"-                          },-                          {-                            "Space": []-                          },-                          {-                            "Str": "of"-                          },-                          {-                            "Space": []-                          },-                          {-                            "Str": "Generic"-                          },-                          {-                            "Space": []-                          },-                          {-                            "Str": "Studies"-                          }-                        ]-                      },-                      {-                        "Str": ","-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "6"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "("-                      },-                      {-                        "Str": "2006"-                      },-                      {-                        "Str": ")"-                      },-                      {-                        "Str": ","-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "33–34"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "("-                      },-                      {-                        "Str": "p."-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "30"-                      },-                      {-                        "Str": ")"-                      },-                      {-                        "Str": ";"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "see"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "also"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "John"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "Doe"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "a"-                      },-                      {-                        "Str": "n"-                      },-                      {-                        "Str": "d"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "Jenny"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "Roe"-                      },-                      {-                        "Str": ","-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "‘"-                      },-                      {-                        "Str": "Why"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "Water"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "Is"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "Wet"-                      },-                      {-                        "Str": "’"-                      },-                      {-                        "Str": ","-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "in"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Emph": [-                          {-                            "Str": "Third"-                          },-                          {-                            "Space": []-                          },-                          {-                            "Str": "Book"-                          }-                        ]-                      },-                      {-                        "Str": ","-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "ed."-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "by"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "Sam"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "Smith"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "("-                      },-                      {-                        "Str": "Oxford:"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "Oxford"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "University"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "Press,"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "2007"-                      },-                      {-                        "Str": ")"-                      },-                      {-                        "Str": "."-                      }-                    ]-                  }-                ]-              }-            ]-          ]-        },-        {-          "Space": []-        },-        {-          "Str": "says"-        },-        {-          "Space": []-        },-        {-          "Str": "blah."-        }-      ]-    },-    {-      "Para": [-        {-          "Str": "In"-        },-        {-          "Space": []-        },-        {-          "Str": "a"-        },-        {-          "Space": []-        },-        {-          "Str": "note."-        },-        {-          "Note": [-            {-              "Para": [-                {-                  "Cite": [-                    [-                      {-                        "citationNoteNum": 0,-                        "citationSuffix": [-                          {-                            "Str": "p."-                          },-                          {-                            "Space": []-                          },-                          {-                            "Str": "12"-                          }-                        ],-                        "citationHash": 9,-                        "citationMode": {-                          "AuthorInText": []-                        },-                        "citationPrefix": [],-                        "citationId": "пункт3"-                      }-                    ],-                    [-                      {-                        "Str": "Doe"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "and"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "Roe"-                      },-                      {-                        "Str": ","-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "p."-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "12"-                      },-                      {-                        "Str": ""-                      }-                    ]-                  ]-                },-                {-                  "Space": []-                },-                {-                  "Str": "and"-                },-                {-                  "Space": []-                },-                {-                  "Str": "a"-                },-                {-                  "Space": []-                },-                {-                  "Str": "citation"-                },-                {-                  "Space": []-                },-                {-                  "Str": "without"-                },-                {-                  "Space": []-                },-                {-                  "Str": "locators"-                },-                {-                  "Space": []-                },-                {-                  "Cite": [-                    [-                      {-                        "citationNoteNum": 0,-                        "citationSuffix": [],-                        "citationHash": 10,-                        "citationMode": {-                          "NormalCitation": []-                        },-                        "citationPrefix": [],-                        "citationId": "пункт3"-                      }-                    ],-                    [-                      {-                        "Str": "Doe"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "a"-                      },-                      {-                        "Str": "n"-                      },-                      {-                        "Str": "d"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "Roe"-                      },-                      {-                        "Str": ""-                      }-                    ]-                  ]-                },-                {-                  "Str": "."-                }-              ]-            }-          ]-        }-      ]-    },-    {-      "Para": [-        {-          "Str": "A"-        },-        {-          "Space": []-        },-        {-          "Str": "citation"-        },-        {-          "Space": []-        },-        {-          "Str": "group"-        },-        {-          "Str": "."-        },-        {-          "Cite": [-            [-              {-                "citationNoteNum": 0,-                "citationSuffix": [-                  {-                    "Space": []-                  },-                  {-                    "Str": "chap."-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "3"-                  }-                ],-                "citationHash": 11,-                "citationMode": {-                  "NormalCitation": []-                },-                "citationPrefix": [-                  {-                    "Str": "see"-                  }-                ],-                "citationId": "item1"-              },-              {-                "citationNoteNum": 0,-                "citationSuffix": [-                  {-                    "Space": []-                  },-                  {-                    "Str": "p."-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "34-35"-                  }-                ],-                "citationHash": 12,-                "citationMode": {-                  "NormalCitation": []-                },-                "citationPrefix": [-                  {-                    "Str": "also"-                  }-                ],-                "citationId": "пункт3"-              }-            ],-            [-              {-                "Note": [-                  {-                    "Para": [-                      {-                        "Str": "See"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "John"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "Doe"-                      },-                      {-                        "Str": ","-                      },-                      {-                        "Space": []-                      },-                      {-                        "Emph": [-                          {-                            "Str": "First"-                          },-                          {-                            "Space": []-                          },-                          {-                            "Str": "Book"-                          }-                        ]-                      },-                      {-                        "Str": ","-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "chap."-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "3"-                      },-                      {-                        "Str": ";"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "also"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "Doe"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "a"-                      },-                      {-                        "Str": "n"-                      },-                      {-                        "Str": "d"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "Roe"-                      },-                      {-                        "Str": ","-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "pp."-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "34–35"-                      },-                      {-                        "Str": "."-                      }-                    ]-                  }-                ]-              }-            ]-          ]-        },-        {-          "Str": ""-        }-      ]-    },-    {-      "Para": [-        {-          "Str": "Another"-        },-        {-          "Space": []-        },-        {-          "Str": "one"-        },-        {-          "Str": "."-        },-        {-          "Cite": [-            [-              {-                "citationNoteNum": 0,-                "citationSuffix": [-                  {-                    "Space": []-                  },-                  {-                    "Str": "p."-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "34-35"-                  }-                ],-                "citationHash": 13,-                "citationMode": {-                  "NormalCitation": []-                },-                "citationPrefix": [-                  {-                    "Str": "see"-                  }-                ],-                "citationId": "item1"-              }-            ],-            [-              {-                "Note": [-                  {-                    "Para": [-                      {-                        "Str": "See"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "John"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "Doe"-                      },-                      {-                        "Str": ","-                      },-                      {-                        "Space": []-                      },-                      {-                        "Emph": [-                          {-                            "Str": "First"-                          },-                          {-                            "Space": []-                          },-                          {-                            "Str": "Book"-                          }-                        ]-                      },-                      {-                        "Str": ","-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "pp."-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "34–35"-                      },-                      {-                        "Str": "."-                      }-                    ]-                  }-                ]-              }-            ]-          ]-        },-        {-          "Str": ""-        }-      ]-    },-    {-      "Para": [-        {-          "Str": "And"-        },-        {-          "Space": []-        },-        {-          "Str": "another"-        },-        {-          "Space": []-        },-        {-          "Str": "one"-        },-        {-          "Space": []-        },-        {-          "Str": "in"-        },-        {-          "Space": []-        },-        {-          "Str": "a"-        },-        {-          "Space": []-        },-        {-          "Str": "note."-        },-        {-          "Note": [-            {-              "Para": [-                {-                  "Str": "Some"-                },-                {-                  "Space": []-                },-                {-                  "Str": "citations"-                },-                {-                  "Space": []-                },-                {-                  "Cite": [-                    [-                      {-                        "citationNoteNum": 0,-                        "citationSuffix": [-                          {-                            "Space": []-                          },-                          {-                            "Str": "chap."-                          },-                          {-                            "Space": []-                          },-                          {-                            "Str": "3"-                          }-                        ],-                        "citationHash": 14,-                        "citationMode": {-                          "NormalCitation": []-                        },-                        "citationPrefix": [-                          {-                            "Str": "see"-                          }-                        ],-                        "citationId": "item1"-                      },-                      {-                        "citationNoteNum": 0,-                        "citationSuffix": [],-                        "citationHash": 15,-                        "citationMode": {-                          "NormalCitation": []-                        },-                        "citationPrefix": [],-                        "citationId": "пункт3"-                      },-                      {-                        "citationNoteNum": 0,-                        "citationSuffix": [],-                        "citationHash": 16,-                        "citationMode": {-                          "NormalCitation": []-                        },-                        "citationPrefix": [],-                        "citationId": "item2"-                      }-                    ],-                    [-                      {-                        "Str": "see"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "John"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "Doe"-                      },-                      {-                        "Str": ","-                      },-                      {-                        "Space": []-                      },-                      {-                        "Emph": [-                          {-                            "Str": "First"-                          },-                          {-                            "Space": []-                          },-                          {-                            "Str": "Book"-                          }-                        ]-                      },-                      {-                        "Str": ","-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "chap."-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "3"-                      },-                      {-                        "Str": ";"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "Doe"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "a"-                      },-                      {-                        "Str": "n"-                      },-                      {-                        "Str": "d"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "Roe"-                      },-                      {-                        "Str": ";"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "John"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "Doe"-                      },-                      {-                        "Str": ","-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "‘Article’"-                      },-                      {-                        "Str": ","-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "33–34"-                      },-                      {-                        "Str": ""-                      }-                    ]-                  ]-                },-                {-                  "Str": "."-                }-              ]-            }-          ]-        }-      ]-    },-    {-      "Para": [-        {-          "Str": "Citation"-        },-        {-          "Space": []-        },-        {-          "Str": "with"-        },-        {-          "Space": []-        },-        {-          "Str": "a"-        },-        {-          "Space": []-        },-        {-          "Str": "suffix"-        },-        {-          "Space": []-        },-        {-          "Str": "and"-        },-        {-          "Space": []-        },-        {-          "Str": "locator"-        },-        {-          "Str": "."-        },-        {-          "Cite": [-            [-              {-                "citationNoteNum": 0,-                "citationSuffix": [-                  {-                    "Space": []-                  },-                  {-                    "Str": "pp."-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "33,"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "35-37,"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "and"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "nowhere"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "else"-                  }-                ],-                "citationHash": 17,-                "citationMode": {-                  "NormalCitation": []-                },-                "citationPrefix": [],-                "citationId": "item1"-              }-            ],-            [-              {-                "Note": [-                  {-                    "Para": [-                      {-                        "Str": "John"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "Doe"-                      },-                      {-                        "Str": ","-                      },-                      {-                        "Space": []-                      },-                      {-                        "Emph": [-                          {-                            "Str": "First"-                          },-                          {-                            "Space": []-                          },-                          {-                            "Str": "Book"-                          }-                        ]-                      },-                      {-                        "Str": ","-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "pp."-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "33,"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "35–37"-                      },-                      {-                        "Str": ","-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "and"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "nowhere"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "else"-                      },-                      {-                        "Str": "."-                      }-                    ]-                  }-                ]-              }-            ]-          ]-        },-        {-          "Str": ""-        }-      ]-    },-    {-      "Para": [-        {-          "Str": "Citation"-        },-        {-          "Space": []-        },-        {-          "Str": "with"-        },-        {-          "Space": []-        },-        {-          "Str": "suffix"-        },-        {-          "Space": []-        },-        {-          "Str": "only"-        },-        {-          "Str": "."-        },-        {-          "Cite": [-            [-              {-                "citationNoteNum": 0,-                "citationSuffix": [-                  {-                    "Space": []-                  },-                  {-                    "Str": "and"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "nowhere"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "else"-                  }-                ],-                "citationHash": 18,-                "citationMode": {-                  "NormalCitation": []-                },-                "citationPrefix": [],-                "citationId": "item1"-              }-            ],-            [-              {-                "Note": [-                  {-                    "Para": [-                      {-                        "Str": "John"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "Doe"-                      },-                      {-                        "Str": ","-                      },-                      {-                        "Space": []-                      },-                      {-                        "Emph": [-                          {-                            "Str": "First"-                          },-                          {-                            "Space": []-                          },-                          {-                            "Str": "Book"-                          }-                        ]-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "and"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "nowhere"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "else"-                      },-                      {-                        "Str": "."-                      }-                    ]-                  }-                ]-              }-            ]-          ]-        },-        {-          "Str": ""-        }-      ]-    },-    {-      "Para": [-        {-          "Str": "Now"-        },-        {-          "Space": []-        },-        {-          "Str": "some"-        },-        {-          "Space": []-        },-        {-          "Str": "modifiers."-        },-        {-          "Note": [-            {-              "Para": [-                {-                  "Str": "Like"-                },-                {-                  "Space": []-                },-                {-                  "Str": "a"-                },-                {-                  "Space": []-                },-                {-                  "Str": "citation"-                },-                {-                  "Space": []-                },-                {-                  "Str": "without"-                },-                {-                  "Space": []-                },-                {-                  "Str": "author:"-                },-                {-                  "Space": []-                },-                {-                  "Cite": [-                    [-                      {-                        "citationNoteNum": 0,-                        "citationSuffix": [],-                        "citationHash": 19,-                        "citationMode": {-                          "SuppressAuthor": []-                        },-                        "citationPrefix": [],-                        "citationId": "item1"-                      }-                    ],-                    [-                      {-                        "Emph": [-                          {-                            "Str": "First"-                          },-                          {-                            "Space": []-                          },-                          {-                            "Str": "Book"-                          }-                        ]-                      },-                      {-                        "Str": ""-                      }-                    ]-                  ]-                },-                {-                  "Str": ","-                },-                {-                  "Space": []-                },-                {-                  "Str": "and"-                },-                {-                  "Space": []-                },-                {-                  "Str": "now"-                },-                {-                  "Space": []-                },-                {-                  "Str": "Doe"-                },-                {-                  "Space": []-                },-                {-                  "Str": "with"-                },-                {-                  "Space": []-                },-                {-                  "Str": "a"-                },-                {-                  "Space": []-                },-                {-                  "Str": "locator"-                },-                {-                  "Space": []-                },-                {-                  "Cite": [-                    [-                      {-                        "citationNoteNum": 0,-                        "citationSuffix": [-                          {-                            "Space": []-                          },-                          {-                            "Str": "p."-                          },-                          {-                            "Space": []-                          },-                          {-                            "Str": "44"-                          }-                        ],-                        "citationHash": 20,-                        "citationMode": {-                          "SuppressAuthor": []-                        },-                        "citationPrefix": [],-                        "citationId": "item2"-                      }-                    ],-                    [-                      {-                        "Str": "‘"-                      },-                      {-                        "Str": "Article"-                      },-                      {-                        "Str": "’"-                      },-                      {-                        "Str": ","-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "33–34"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "("-                      },-                      {-                        "Str": "p."-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "44"-                      },-                      {-                        "Str": ")"-                      },-                      {-                        "Str": ""-                      }-                    ]-                  ]-                },-                {-                  "Str": "."-                }-              ]-            }-          ]-        }-      ]-    },-    {-      "Para": [-        {-          "Str": "With"-        },-        {-          "Space": []-        },-        {-          "Str": "some"-        },-        {-          "Space": []-        },-        {-          "Str": "markup"-        },-        {-          "Str": "."-        },-        {-          "Cite": [-            [-              {-                "citationNoteNum": 0,-                "citationSuffix": [-                  {-                    "Space": []-                  },-                  {-                    "Str": "p."-                  },-                  {-                    "Space": []-                  },-                  {-                    "Strong": [-                      {-                        "Str": "32"-                      }-                    ]-                  }-                ],-                "citationHash": 21,-                "citationMode": {-                  "NormalCitation": []-                },-                "citationPrefix": [-                  {-                    "Emph": [-                      {-                        "Str": "see"-                      }-                    ]-                  }-                ],-                "citationId": "item1"-              }-            ],-            [-              {-                "Note": [-                  {-                    "Para": [-                      {-                        "Emph": [-                          {-                            "Str": "See"-                          }-                        ]-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "John"-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "Doe"-                      },-                      {-                        "Str": ","-                      },-                      {-                        "Space": []-                      },-                      {-                        "Emph": [-                          {-                            "Str": "First"-                          },-                          {-                            "Space": []-                          },-                          {-                            "Str": "Book"-                          }-                        ]-                      },-                      {-                        "Str": ","-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "p."-                      },-                      {-                        "Space": []-                      },-                      {-                        "Str": "32"-                      },-                      {-                        "Str": "."-                      }-                    ]-                  }-                ]-              }-            ]-          ]-        },-        {-          "Str": ""-        }-      ]-    },-    {-      "Div": [-        [-          "",-          [-            "references"-          ],-          []-        ],-        [-          {-            "Header": [-              1,-              [-                "references",-                [],-                []-              ],-              [-                {-                  "Str": "References"-                }-              ]-            ]-          },-          {-            "Para": [-              {-                "Str": "Doe,"-              },-              {-                "Space": []-              },-              {-                "Str": "John,"-              },-              {-                "Space": []-              },-              {-                "Str": "‘Article’,"-              },-              {-                "Space": []-              },-              {-                "Emph": [-                  {-                    "Str": "Journal"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "of"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "Generic"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "Studies"-                  }-                ]-              },-              {-                "Str": ","-              },-              {-                "Space": []-              },-              {-                "Str": "6"-              },-              {-                "Space": []-              },-              {-                "Str": "(2006),"-              },-              {-                "Space": []-              },-              {-                "Str": "33–34"-              },-              {-                "Str": "."-              }-            ]-          },-          {-            "Para": [-              {-                "Str": "---,"-              },-              {-                "Space": []-              },-              {-                "Emph": [-                  {-                    "Str": "First"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "Book"-                  }-                ]-              },-              {-                "Space": []-              },-              {-                "Str": "(Cambridge:"-              },-              {-                "Space": []-              },-              {-                "Str": "Cambridge"-              },-              {-                "Space": []-              },-              {-                "Str": "University"-              },-              {-                "Space": []-              },-              {-                "Str": "Press,"-              },-              {-                "Space": []-              },-              {-                "Str": "2005)"-              },-              {-                "Str": "."-              }-            ]-          },-          {-            "Para": [-              {-                "Str": "Doe,"-              },-              {-                "Space": []-              },-              {-                "Str": "John,"-              },-              {-                "Space": []-              },-              {-                "Str": "and"-              },-              {-                "Space": []-              },-              {-                "Str": "Jenny"-              },-              {-                "Space": []-              },-              {-                "Str": "Roe,"-              },-              {-                "Space": []-              },-              {-                "Str": "‘Why"-              },-              {-                "Space": []-              },-              {-                "Str": "Water"-              },-              {-                "Space": []-              },-              {-                "Str": "Is"-              },-              {-                "Space": []-              },-              {-                "Str": "Wet’,"-              },-              {-                "Space": []-              },-              {-                "Str": "in"-              },-              {-                "Space": []-              },-              {-                "Emph": [-                  {-                    "Str": "Third"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "Book"-                  }-                ]-              },-              {-                "Str": ","-              },-              {-                "Space": []-              },-              {-                "Str": "ed."-              },-              {-                "Space": []-              },-              {-                "Str": "by"-              },-              {-                "Space": []-              },-              {-                "Str": "Sam"-              },-              {-                "Space": []-              },-              {-                "Str": "Smith"-              },-              {-                "Space": []-              },-              {-                "Str": "(Oxford:"-              },-              {-                "Space": []-              },-              {-                "Str": "Oxford"-              },-              {-                "Space": []-              },-              {-                "Str": "University"-              },-              {-                "Space": []-              },-              {-                "Str": "Press,"-              },-              {-                "Space": []-              },-              {-                "Str": "2007)"-              },-              {-                "Str": "."-              }-            ]-          }-        ]-      ]+        "c": [+          {+            "c": "tests/mhra.csl",+            "t": "Str"+          }+        ],+        "t": "MetaInlines"+      },+      "references": {+        "c": [+          {+            "c": {+              "title": {+                "c": [+                  {+                    "c": "First",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "Book",+                    "t": "Str"+                  }+                ],+                "t": "MetaInlines"+              },+              "id": {+                "c": [+                  {+                    "c": "item1",+                    "t": "Str"+                  }+                ],+                "t": "MetaInlines"+              },+              "issued": {+                "c": {+                  "year": {+                    "c": "2005",+                    "t": "MetaString"+                  }+                },+                "t": "MetaMap"+              },+              "author": {+                "c": {+                  "given": {+                    "c": [+                      {+                        "c": [+                          {+                            "c": "John",+                            "t": "Str"+                          }+                        ],+                        "t": "MetaInlines"+                      }+                    ],+                    "t": "MetaList"+                  },+                  "family": {+                    "c": [+                      {+                        "c": "Doe",+                        "t": "Str"+                      }+                    ],+                    "t": "MetaInlines"+                  }+                },+                "t": "MetaMap"+              },+              "publisher": {+                "c": [+                  {+                    "c": "Cambridge",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "University",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "Press",+                    "t": "Str"+                  }+                ],+                "t": "MetaInlines"+              },+              "type": {+                "c": [+                  {+                    "c": "book",+                    "t": "Str"+                  }+                ],+                "t": "MetaInlines"+              },+              "publisher-place": {+                "c": [+                  {+                    "c": "Cambridge",+                    "t": "Str"+                  }+                ],+                "t": "MetaInlines"+              }+            },+            "t": "MetaMap"+          },+          {+            "c": {+              "page": {+                "c": [+                  {+                    "c": "33-34",+                    "t": "Str"+                  }+                ],+                "t": "MetaInlines"+              },+              "title": {+                "c": [+                  {+                    "c": "Article",+                    "t": "Str"+                  }+                ],+                "t": "MetaInlines"+              },+              "volume": {+                "c": "6",+                "t": "MetaString"+              },+              "id": {+                "c": [+                  {+                    "c": "item2",+                    "t": "Str"+                  }+                ],+                "t": "MetaInlines"+              },+              "issued": {+                "c": {+                  "year": {+                    "c": "2006",+                    "t": "MetaString"+                  }+                },+                "t": "MetaMap"+              },+              "author": {+                "c": {+                  "given": {+                    "c": [+                      {+                        "c": [+                          {+                            "c": "John",+                            "t": "Str"+                          }+                        ],+                        "t": "MetaInlines"+                      }+                    ],+                    "t": "MetaList"+                  },+                  "family": {+                    "c": [+                      {+                        "c": "Doe",+                        "t": "Str"+                      }+                    ],+                    "t": "MetaInlines"+                  }+                },+                "t": "MetaMap"+              },+              "container-title": {+                "c": [+                  {+                    "c": "Journal",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "of",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "Generic",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "Studies",+                    "t": "Str"+                  }+                ],+                "t": "MetaInlines"+              },+              "type": {+                "c": [+                  {+                    "c": "article-journal",+                    "t": "Str"+                  }+                ],+                "t": "MetaInlines"+              }+            },+            "t": "MetaMap"+          },+          {+            "c": {+              "title": {+                "c": [+                  {+                    "c": "Why",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "Water",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "Is",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "Wet",+                    "t": "Str"+                  }+                ],+                "t": "MetaInlines"+              },+              "id": {+                "c": [+                  {+                    "c": "пункт3",+                    "t": "Str"+                  }+                ],+                "t": "MetaInlines"+              },+              "issued": {+                "c": {+                  "year": {+                    "c": "2007",+                    "t": "MetaString"+                  }+                },+                "t": "MetaMap"+              },+              "author": {+                "c": [+                  {+                    "c": {+                      "given": {+                        "c": [+                          {+                            "c": [+                              {+                                "c": "John",+                                "t": "Str"+                              }+                            ],+                            "t": "MetaInlines"+                          }+                        ],+                        "t": "MetaList"+                      },+                      "family": {+                        "c": [+                          {+                            "c": "Doe",+                            "t": "Str"+                          }+                        ],+                        "t": "MetaInlines"+                      }+                    },+                    "t": "MetaMap"+                  },+                  {+                    "c": {+                      "given": {+                        "c": [+                          {+                            "c": [+                              {+                                "c": "Jenny",+                                "t": "Str"+                              }+                            ],+                            "t": "MetaInlines"+                          }+                        ],+                        "t": "MetaList"+                      },+                      "family": {+                        "c": [+                          {+                            "c": "Roe",+                            "t": "Str"+                          }+                        ],+                        "t": "MetaInlines"+                      }+                    },+                    "t": "MetaMap"+                  }+                ],+                "t": "MetaList"+              },+              "container-title": {+                "c": [+                  {+                    "c": "Third",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "Book",+                    "t": "Str"+                  }+                ],+                "t": "MetaInlines"+              },+              "editor": {+                "c": {+                  "given": {+                    "c": [+                      {+                        "c": [+                          {+                            "c": "Sam",+                            "t": "Str"+                          }+                        ],+                        "t": "MetaInlines"+                      }+                    ],+                    "t": "MetaList"+                  },+                  "family": {+                    "c": [+                      {+                        "c": "Smith",+                        "t": "Str"+                      }+                    ],+                    "t": "MetaInlines"+                  }+                },+                "t": "MetaMap"+              },+              "publisher": {+                "c": [+                  {+                    "c": "Oxford",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "University",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "Press",+                    "t": "Str"+                  }+                ],+                "t": "MetaInlines"+              },+              "type": {+                "c": [+                  {+                    "c": "chapter",+                    "t": "Str"+                  }+                ],+                "t": "MetaInlines"+              },+              "publisher-place": {+                "c": [+                  {+                    "c": "Oxford",+                    "t": "Str"+                  }+                ],+                "t": "MetaInlines"+              }+            },+            "t": "MetaMap"+          }+        ],+        "t": "MetaList"+      }+    }+  },+  [+    {+      "c": [+        1,+        [+          "pandoc-with-citeproc-hs",+          [],+          []+        ],+        [+          {+            "c": "Pandoc",+            "t": "Str"+          },+          {+            "c": [],+            "t": "Space"+          },+          {+            "c": "with",+            "t": "Str"+          },+          {+            "c": [],+            "t": "Space"+          },+          {+            "c": "citeproc-hs",+            "t": "Str"+          }+        ]+      ],+      "t": "Header"+    },+    {+      "c": [+        {+          "c": [+            [+              {+                "citationId": "nonexistent",+                "citationSuffix": [],+                "citationHash": 1,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "NormalCitation"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": [+                  {+                    "c": [+                      {+                        "c": [+                          [+                            "",+                            [+                              "citeproc-not-found"+                            ],+                            [+                              [+                                "data-reference-id",+                                "nonexistent"+                              ]+                            ]+                          ],+                          [+                            {+                              "c": [+                                {+                                  "c": "???",+                                  "t": "Str"+                                }+                              ],+                              "t": "Strong"+                            }+                          ]+                        ],+                        "t": "Span"+                      }+                    ],+                    "t": "Para"+                  }+                ],+                "t": "Note"+              }+            ]+          ],+          "t": "Cite"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": [+            [+              {+                "citationId": "nonexistent",+                "citationSuffix": [],+                "citationHash": 2,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "AuthorInText"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": [+                  {+                    "c": [+                      {+                        "c": [+                          [+                            "",+                            [+                              "citeproc-no-output"+                            ],+                            []+                          ],+                          [+                            {+                              "c": [+                                {+                                  "c": "???",+                                  "t": "Str"+                                }+                              ],+                              "t": "Strong"+                            }+                          ]+                        ],+                        "t": "Span"+                      }+                    ],+                    "t": "Para"+                  }+                ],+                "t": "Note"+              }+            ]+          ],+          "t": "Cite"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [],+                "citationHash": 3,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "AuthorInText"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "John",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "Doe",+                "t": "Str"+              },+              {+                "c": [+                  {+                    "c": [+                      {+                        "c": [+                          {+                            "c": "First",+                            "t": "Str"+                          },+                          {+                            "c": [],+                            "t": "Space"+                          },+                          {+                            "c": "Book",+                            "t": "Str"+                          }+                        ],+                        "t": "Emph"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "(",+                        "t": "Str"+                      },+                      {+                        "c": "Cambridge:",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "Cambridge",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "University",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "Press,",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "2005",+                        "t": "Str"+                      },+                      {+                        "c": ")",+                        "t": "Str"+                      },+                      {+                        "c": ".",+                        "t": "Str"+                      }+                    ],+                    "t": "Para"+                  }+                ],+                "t": "Note"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "says",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "blah.",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [+                  {+                    "c": "p.",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "30",+                    "t": "Str"+                  }+                ],+                "citationHash": 4,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "AuthorInText"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "Doe",+                "t": "Str"+              },+              {+                "c": [+                  {+                    "c": [+                      {+                        "c": [+                          {+                            "c": "First",+                            "t": "Str"+                          },+                          {+                            "c": [],+                            "t": "Space"+                          },+                          {+                            "c": "Book",+                            "t": "Str"+                          }+                        ],+                        "t": "Emph"+                      },+                      {+                        "c": ",",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "p.",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "30",+                        "t": "Str"+                      },+                      {+                        "c": ".",+                        "t": "Str"+                      }+                    ],+                    "t": "Para"+                  }+                ],+                "t": "Note"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "says",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "blah.",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [+                  {+                    "c": "p.",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "30,",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "with",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "suffix",+                    "t": "Str"+                  }+                ],+                "citationHash": 5,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "AuthorInText"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "Doe",+                "t": "Str"+              },+              {+                "c": [+                  {+                    "c": [+                      {+                        "c": [+                          {+                            "c": "First",+                            "t": "Str"+                          },+                          {+                            "c": [],+                            "t": "Space"+                          },+                          {+                            "c": "Book",+                            "t": "Str"+                          }+                        ],+                        "t": "Emph"+                      },+                      {+                        "c": ",",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "p.",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "30",+                        "t": "Str"+                      },+                      {+                        "c": ",",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "with",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "suffix",+                        "t": "Str"+                      },+                      {+                        "c": ".",+                        "t": "Str"+                      }+                    ],+                    "t": "Para"+                  }+                ],+                "t": "Note"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "says",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "blah.",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [],+                "citationHash": 6,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "AuthorInText"+                },+                "citationNoteNum": 0+              },+              {+                "citationId": "item2",+                "citationSuffix": [+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "p.",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "30",+                    "t": "Str"+                  }+                ],+                "citationHash": 7,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "SuppressAuthor"+                },+                "citationNoteNum": 0+              },+              {+                "citationId": "пункт3",+                "citationSuffix": [],+                "citationHash": 8,+                "citationPrefix": [+                  {+                    "c": "see",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "also",+                    "t": "Str"+                  }+                ],+                "citationMode": {+                  "c": [],+                  "t": "NormalCitation"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "Doe",+                "t": "Str"+              },+              {+                "c": [+                  {+                    "c": [+                      {+                        "c": [+                          {+                            "c": "First",+                            "t": "Str"+                          },+                          {+                            "c": [],+                            "t": "Space"+                          },+                          {+                            "c": "Book",+                            "t": "Str"+                          }+                        ],+                        "t": "Emph"+                      },+                      {+                        "c": ";",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "‘",+                        "t": "Str"+                      },+                      {+                        "c": "Article",+                        "t": "Str"+                      },+                      {+                        "c": "’",+                        "t": "Str"+                      },+                      {+                        "c": ",",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": [+                          {+                            "c": "Journal",+                            "t": "Str"+                          },+                          {+                            "c": [],+                            "t": "Space"+                          },+                          {+                            "c": "of",+                            "t": "Str"+                          },+                          {+                            "c": [],+                            "t": "Space"+                          },+                          {+                            "c": "Generic",+                            "t": "Str"+                          },+                          {+                            "c": [],+                            "t": "Space"+                          },+                          {+                            "c": "Studies",+                            "t": "Str"+                          }+                        ],+                        "t": "Emph"+                      },+                      {+                        "c": ",",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "6",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "(",+                        "t": "Str"+                      },+                      {+                        "c": "2006",+                        "t": "Str"+                      },+                      {+                        "c": ")",+                        "t": "Str"+                      },+                      {+                        "c": ",",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "33–34",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "(",+                        "t": "Str"+                      },+                      {+                        "c": "p.",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "30",+                        "t": "Str"+                      },+                      {+                        "c": ")",+                        "t": "Str"+                      },+                      {+                        "c": ";",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "see",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "also",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "John",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "Doe",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "a",+                        "t": "Str"+                      },+                      {+                        "c": "n",+                        "t": "Str"+                      },+                      {+                        "c": "d",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "Jenny",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "Roe",+                        "t": "Str"+                      },+                      {+                        "c": ",",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "‘",+                        "t": "Str"+                      },+                      {+                        "c": "Why",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "Water",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "Is",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "Wet",+                        "t": "Str"+                      },+                      {+                        "c": "’",+                        "t": "Str"+                      },+                      {+                        "c": ",",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "in",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": [+                          {+                            "c": "Third",+                            "t": "Str"+                          },+                          {+                            "c": [],+                            "t": "Space"+                          },+                          {+                            "c": "Book",+                            "t": "Str"+                          }+                        ],+                        "t": "Emph"+                      },+                      {+                        "c": ",",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "ed.",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "by",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "Sam",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "Smith",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "(",+                        "t": "Str"+                      },+                      {+                        "c": "Oxford:",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "Oxford",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "University",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "Press,",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "2007",+                        "t": "Str"+                      },+                      {+                        "c": ")",+                        "t": "Str"+                      },+                      {+                        "c": ".",+                        "t": "Str"+                      }+                    ],+                    "t": "Para"+                  }+                ],+                "t": "Note"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "says",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "blah.",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": "In",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "a",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "note.",+          "t": "Str"+        },+        {+          "c": [+            {+              "c": [+                {+                  "c": [+                    [+                      {+                        "citationId": "пункт3",+                        "citationSuffix": [+                          {+                            "c": "p.",+                            "t": "Str"+                          },+                          {+                            "c": [],+                            "t": "Space"+                          },+                          {+                            "c": "12",+                            "t": "Str"+                          }+                        ],+                        "citationHash": 9,+                        "citationPrefix": [],+                        "citationMode": {+                          "c": [],+                          "t": "AuthorInText"+                        },+                        "citationNoteNum": 0+                      }+                    ],+                    [+                      {+                        "c": "Doe",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "and",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "Roe",+                        "t": "Str"+                      },+                      {+                        "c": ",",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "p.",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "12",+                        "t": "Str"+                      },+                      {+                        "c": "",+                        "t": "Str"+                      }+                    ]+                  ],+                  "t": "Cite"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "and",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "a",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "citation",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "without",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "locators",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": [+                    [+                      {+                        "citationId": "пункт3",+                        "citationSuffix": [],+                        "citationHash": 10,+                        "citationPrefix": [],+                        "citationMode": {+                          "c": [],+                          "t": "NormalCitation"+                        },+                        "citationNoteNum": 0+                      }+                    ],+                    [+                      {+                        "c": "Doe",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "a",+                        "t": "Str"+                      },+                      {+                        "c": "n",+                        "t": "Str"+                      },+                      {+                        "c": "d",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "Roe",+                        "t": "Str"+                      },+                      {+                        "c": "",+                        "t": "Str"+                      }+                    ]+                  ],+                  "t": "Cite"+                },+                {+                  "c": ".",+                  "t": "Str"+                }+              ],+              "t": "Para"+            }+          ],+          "t": "Note"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": "A",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "citation",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "group",+          "t": "Str"+        },+        {+          "c": ".",+          "t": "Str"+        },+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "chap.",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "3",+                    "t": "Str"+                  }+                ],+                "citationHash": 11,+                "citationPrefix": [+                  {+                    "c": "see",+                    "t": "Str"+                  }+                ],+                "citationMode": {+                  "c": [],+                  "t": "NormalCitation"+                },+                "citationNoteNum": 0+              },+              {+                "citationId": "пункт3",+                "citationSuffix": [+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "p.",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "34-35",+                    "t": "Str"+                  }+                ],+                "citationHash": 12,+                "citationPrefix": [+                  {+                    "c": "also",+                    "t": "Str"+                  }+                ],+                "citationMode": {+                  "c": [],+                  "t": "NormalCitation"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": [+                  {+                    "c": [+                      {+                        "c": "See",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "Doe",+                        "t": "Str"+                      },+                      {+                        "c": ",",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": [+                          {+                            "c": "First",+                            "t": "Str"+                          },+                          {+                            "c": [],+                            "t": "Space"+                          },+                          {+                            "c": "Book",+                            "t": "Str"+                          }+                        ],+                        "t": "Emph"+                      },+                      {+                        "c": ",",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "chap.",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "3",+                        "t": "Str"+                      },+                      {+                        "c": ";",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "also",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "Doe",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "a",+                        "t": "Str"+                      },+                      {+                        "c": "n",+                        "t": "Str"+                      },+                      {+                        "c": "d",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "Roe",+                        "t": "Str"+                      },+                      {+                        "c": ",",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "pp.",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "34–35",+                        "t": "Str"+                      },+                      {+                        "c": ".",+                        "t": "Str"+                      }+                    ],+                    "t": "Para"+                  }+                ],+                "t": "Note"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": "",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": "Another",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "one",+          "t": "Str"+        },+        {+          "c": ".",+          "t": "Str"+        },+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "p.",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "34-35",+                    "t": "Str"+                  }+                ],+                "citationHash": 13,+                "citationPrefix": [+                  {+                    "c": "see",+                    "t": "Str"+                  }+                ],+                "citationMode": {+                  "c": [],+                  "t": "NormalCitation"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": [+                  {+                    "c": [+                      {+                        "c": "See",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "Doe",+                        "t": "Str"+                      },+                      {+                        "c": ",",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": [+                          {+                            "c": "First",+                            "t": "Str"+                          },+                          {+                            "c": [],+                            "t": "Space"+                          },+                          {+                            "c": "Book",+                            "t": "Str"+                          }+                        ],+                        "t": "Emph"+                      },+                      {+                        "c": ",",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "pp.",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "34–35",+                        "t": "Str"+                      },+                      {+                        "c": ".",+                        "t": "Str"+                      }+                    ],+                    "t": "Para"+                  }+                ],+                "t": "Note"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": "",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": "And",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "another",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "one",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "in",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "a",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "note.",+          "t": "Str"+        },+        {+          "c": [+            {+              "c": [+                {+                  "c": "Some",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "citations",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": [+                    [+                      {+                        "citationId": "item1",+                        "citationSuffix": [+                          {+                            "c": [],+                            "t": "Space"+                          },+                          {+                            "c": "chap.",+                            "t": "Str"+                          },+                          {+                            "c": [],+                            "t": "Space"+                          },+                          {+                            "c": "3",+                            "t": "Str"+                          }+                        ],+                        "citationHash": 14,+                        "citationPrefix": [+                          {+                            "c": "see",+                            "t": "Str"+                          }+                        ],+                        "citationMode": {+                          "c": [],+                          "t": "NormalCitation"+                        },+                        "citationNoteNum": 0+                      },+                      {+                        "citationId": "пункт3",+                        "citationSuffix": [],+                        "citationHash": 15,+                        "citationPrefix": [],+                        "citationMode": {+                          "c": [],+                          "t": "NormalCitation"+                        },+                        "citationNoteNum": 0+                      },+                      {+                        "citationId": "item2",+                        "citationSuffix": [],+                        "citationHash": 16,+                        "citationPrefix": [],+                        "citationMode": {+                          "c": [],+                          "t": "NormalCitation"+                        },+                        "citationNoteNum": 0+                      }+                    ],+                    [+                      {+                        "c": "see",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "Doe",+                        "t": "Str"+                      },+                      {+                        "c": ",",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": [+                          {+                            "c": "First",+                            "t": "Str"+                          },+                          {+                            "c": [],+                            "t": "Space"+                          },+                          {+                            "c": "Book",+                            "t": "Str"+                          }+                        ],+                        "t": "Emph"+                      },+                      {+                        "c": ",",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "chap.",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "3",+                        "t": "Str"+                      },+                      {+                        "c": ";",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "Doe",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "a",+                        "t": "Str"+                      },+                      {+                        "c": "n",+                        "t": "Str"+                      },+                      {+                        "c": "d",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "Roe",+                        "t": "Str"+                      },+                      {+                        "c": ";",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "Doe",+                        "t": "Str"+                      },+                      {+                        "c": ",",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "‘Article’",+                        "t": "Str"+                      },+                      {+                        "c": ",",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "33–34",+                        "t": "Str"+                      },+                      {+                        "c": "",+                        "t": "Str"+                      }+                    ]+                  ],+                  "t": "Cite"+                },+                {+                  "c": ".",+                  "t": "Str"+                }+              ],+              "t": "Para"+            }+          ],+          "t": "Note"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": "Citation",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "with",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "a",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "suffix",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "and",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "locator",+          "t": "Str"+        },+        {+          "c": ".",+          "t": "Str"+        },+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "pp.",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "33,",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "35-37,",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "and",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "nowhere",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "else",+                    "t": "Str"+                  }+                ],+                "citationHash": 17,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "NormalCitation"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": [+                  {+                    "c": [+                      {+                        "c": "Doe",+                        "t": "Str"+                      },+                      {+                        "c": ",",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": [+                          {+                            "c": "First",+                            "t": "Str"+                          },+                          {+                            "c": [],+                            "t": "Space"+                          },+                          {+                            "c": "Book",+                            "t": "Str"+                          }+                        ],+                        "t": "Emph"+                      },+                      {+                        "c": ",",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "pp.",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "33,",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "35–37",+                        "t": "Str"+                      },+                      {+                        "c": ",",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "and",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "nowhere",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "else",+                        "t": "Str"+                      },+                      {+                        "c": ".",+                        "t": "Str"+                      }+                    ],+                    "t": "Para"+                  }+                ],+                "t": "Note"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": "",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": "Citation",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "with",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "suffix",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "only",+          "t": "Str"+        },+        {+          "c": ".",+          "t": "Str"+        },+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "and",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "nowhere",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "else",+                    "t": "Str"+                  }+                ],+                "citationHash": 18,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "NormalCitation"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": [+                  {+                    "c": [+                      {+                        "c": "Doe",+                        "t": "Str"+                      },+                      {+                        "c": ",",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": [+                          {+                            "c": "First",+                            "t": "Str"+                          },+                          {+                            "c": [],+                            "t": "Space"+                          },+                          {+                            "c": "Book",+                            "t": "Str"+                          }+                        ],+                        "t": "Emph"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "and",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "nowhere",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "else",+                        "t": "Str"+                      },+                      {+                        "c": ".",+                        "t": "Str"+                      }+                    ],+                    "t": "Para"+                  }+                ],+                "t": "Note"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": "",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": "Now",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "some",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "modifiers.",+          "t": "Str"+        },+        {+          "c": [+            {+              "c": [+                {+                  "c": "Like",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "a",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "citation",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "without",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "author:",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": [+                    [+                      {+                        "citationId": "item1",+                        "citationSuffix": [],+                        "citationHash": 19,+                        "citationPrefix": [],+                        "citationMode": {+                          "c": [],+                          "t": "SuppressAuthor"+                        },+                        "citationNoteNum": 0+                      }+                    ],+                    [+                      {+                        "c": [+                          {+                            "c": "First",+                            "t": "Str"+                          },+                          {+                            "c": [],+                            "t": "Space"+                          },+                          {+                            "c": "Book",+                            "t": "Str"+                          }+                        ],+                        "t": "Emph"+                      },+                      {+                        "c": "",+                        "t": "Str"+                      }+                    ]+                  ],+                  "t": "Cite"+                },+                {+                  "c": ",",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "and",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "now",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "Doe",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "with",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "a",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "locator",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": [+                    [+                      {+                        "citationId": "item2",+                        "citationSuffix": [+                          {+                            "c": [],+                            "t": "Space"+                          },+                          {+                            "c": "p.",+                            "t": "Str"+                          },+                          {+                            "c": [],+                            "t": "Space"+                          },+                          {+                            "c": "44",+                            "t": "Str"+                          }+                        ],+                        "citationHash": 20,+                        "citationPrefix": [],+                        "citationMode": {+                          "c": [],+                          "t": "SuppressAuthor"+                        },+                        "citationNoteNum": 0+                      }+                    ],+                    [+                      {+                        "c": "‘",+                        "t": "Str"+                      },+                      {+                        "c": "Article",+                        "t": "Str"+                      },+                      {+                        "c": "’",+                        "t": "Str"+                      },+                      {+                        "c": ",",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "33–34",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "(",+                        "t": "Str"+                      },+                      {+                        "c": "p.",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "44",+                        "t": "Str"+                      },+                      {+                        "c": ")",+                        "t": "Str"+                      },+                      {+                        "c": "",+                        "t": "Str"+                      }+                    ]+                  ],+                  "t": "Cite"+                },+                {+                  "c": ".",+                  "t": "Str"+                }+              ],+              "t": "Para"+            }+          ],+          "t": "Note"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": "With",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "some",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "markup",+          "t": "Str"+        },+        {+          "c": ".",+          "t": "Str"+        },+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "p.",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": [+                      {+                        "c": "32",+                        "t": "Str"+                      }+                    ],+                    "t": "Strong"+                  }+                ],+                "citationHash": 21,+                "citationPrefix": [+                  {+                    "c": [+                      {+                        "c": "see",+                        "t": "Str"+                      }+                    ],+                    "t": "Emph"+                  }+                ],+                "citationMode": {+                  "c": [],+                  "t": "NormalCitation"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": [+                  {+                    "c": [+                      {+                        "c": [+                          {+                            "c": "See",+                            "t": "Str"+                          }+                        ],+                        "t": "Emph"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "Doe",+                        "t": "Str"+                      },+                      {+                        "c": ",",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": [+                          {+                            "c": "First",+                            "t": "Str"+                          },+                          {+                            "c": [],+                            "t": "Space"+                          },+                          {+                            "c": "Book",+                            "t": "Str"+                          }+                        ],+                        "t": "Emph"+                      },+                      {+                        "c": ",",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "p.",+                        "t": "Str"+                      },+                      {+                        "c": [],+                        "t": "Space"+                      },+                      {+                        "c": "32",+                        "t": "Str"+                      },+                      {+                        "c": ".",+                        "t": "Str"+                      }+                    ],+                    "t": "Para"+                  }+                ],+                "t": "Note"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": "",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        [+          "",+          [+            "references"+          ],+          []+        ],+        [+          {+            "c": [+              1,+              [+                "references",+                [],+                []+              ],+              [+                {+                  "c": "References",+                  "t": "Str"+                }+              ]+            ],+            "t": "Header"+          },+          {+            "c": [+              {+                "c": "Doe,",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "John,",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "‘Article’,",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": [+                  {+                    "c": "Journal",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "of",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "Generic",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "Studies",+                    "t": "Str"+                  }+                ],+                "t": "Emph"+              },+              {+                "c": ",",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "6",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "(2006),",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "33–34",+                "t": "Str"+              },+              {+                "c": ".",+                "t": "Str"+              }+            ],+            "t": "Para"+          },+          {+            "c": [+              {+                "c": "---,",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": [+                  {+                    "c": "First",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "Book",+                    "t": "Str"+                  }+                ],+                "t": "Emph"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "(Cambridge:",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "Cambridge",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "University",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "Press,",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "2005)",+                "t": "Str"+              },+              {+                "c": ".",+                "t": "Str"+              }+            ],+            "t": "Para"+          },+          {+            "c": [+              {+                "c": "Doe,",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "John,",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "and",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "Jenny",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "Roe,",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "‘Why",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "Water",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "Is",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "Wet’,",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "in",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": [+                  {+                    "c": "Third",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "Book",+                    "t": "Str"+                  }+                ],+                "t": "Emph"+              },+              {+                "c": ",",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "ed.",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "by",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "Sam",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "Smith",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "(Oxford:",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "Oxford",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "University",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "Press,",+                "t": "Str"+              },+              {+                "c": [],+                "t": "Space"+              },+              {+                "c": "2007)",+                "t": "Str"+              },+              {+                "c": ".",+                "t": "Str"+              }+            ],+            "t": "Para"+          }+        ]+      ],+      "t": "Div"     }   ] ]
tests/mhra.in.json view
@@ -2,1447 +2,1817 @@   {     "unMeta": {       "csl": {-        "MetaInlines": [-          {-            "Str": "tests/mhra.csl"-          }-        ]-      },-      "references": {-        "MetaList": [-          {-            "MetaMap": {-              "author": {-                "MetaMap": {-                  "family": {-                    "MetaInlines": [-                      {-                        "Str": "Doe"-                      }-                    ]-                  },-                  "given": {-                    "MetaList": [-                      {-                        "MetaInlines": [-                          {-                            "Str": "John"-                          }-                        ]-                      }-                    ]-                  }-                }-              },-              "title": {-                "MetaInlines": [-                  {-                    "Str": "First"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "Book"-                  }-                ]-              },-              "id": {-                "MetaInlines": [-                  {-                    "Str": "item1"-                  }-                ]-              },-              "issued": {-                "MetaMap": {-                  "year": {-                    "MetaString": "2005"-                  }-                }-              },-              "publisher": {-                "MetaInlines": [-                  {-                    "Str": "Cambridge"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "University"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "Press"-                  }-                ]-              },-              "type": {-                "MetaInlines": [-                  {-                    "Str": "book"-                  }-                ]-              },-              "publisher-place": {-                "MetaInlines": [-                  {-                    "Str": "Cambridge"-                  }-                ]-              }-            }-          },-          {-            "MetaMap": {-              "author": {-                "MetaMap": {-                  "family": {-                    "MetaInlines": [-                      {-                        "Str": "Doe"-                      }-                    ]-                  },-                  "given": {-                    "MetaList": [-                      {-                        "MetaInlines": [-                          {-                            "Str": "John"-                          }-                        ]-                      }-                    ]-                  }-                }-              },-              "title": {-                "MetaInlines": [-                  {-                    "Str": "Article"-                  }-                ]-              },-              "page": {-                "MetaInlines": [-                  {-                    "Str": "33-34"-                  }-                ]-              },-              "id": {-                "MetaInlines": [-                  {-                    "Str": "item2"-                  }-                ]-              },-              "issued": {-                "MetaMap": {-                  "year": {-                    "MetaString": "2006"-                  }-                }-              },-              "type": {-                "MetaInlines": [-                  {-                    "Str": "article-journal"-                  }-                ]-              },-              "volume": {-                "MetaString": "6"-              },-              "container-title": {-                "MetaInlines": [-                  {-                    "Str": "Journal"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "of"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "Generic"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "Studies"-                  }-                ]-              }-            }-          },-          {-            "MetaMap": {-              "author": {-                "MetaList": [-                  {-                    "MetaMap": {-                      "family": {-                        "MetaInlines": [-                          {-                            "Str": "Doe"-                          }-                        ]-                      },-                      "given": {-                        "MetaList": [-                          {-                            "MetaInlines": [-                              {-                                "Str": "John"-                              }-                            ]-                          }-                        ]-                      }-                    }-                  },-                  {-                    "MetaMap": {-                      "family": {-                        "MetaInlines": [-                          {-                            "Str": "Roe"-                          }-                        ]-                      },-                      "given": {-                        "MetaList": [-                          {-                            "MetaInlines": [-                              {-                                "Str": "Jenny"-                              }-                            ]-                          }-                        ]-                      }-                    }-                  }-                ]-              },-              "editor": {-                "MetaMap": {-                  "family": {-                    "MetaInlines": [-                      {-                        "Str": "Smith"-                      }-                    ]-                  },-                  "given": {-                    "MetaList": [-                      {-                        "MetaInlines": [-                          {-                            "Str": "Sam"-                          }-                        ]-                      }-                    ]-                  }-                }-              },-              "title": {-                "MetaInlines": [-                  {-                    "Str": "Why"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "Water"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "Is"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "Wet"-                  }-                ]-              },-              "id": {-                "MetaInlines": [-                  {-                    "Str": "пункт3"-                  }-                ]-              },-              "issued": {-                "MetaMap": {-                  "year": {-                    "MetaString": "2007"-                  }-                }-              },-              "publisher": {-                "MetaInlines": [-                  {-                    "Str": "Oxford"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "University"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "Press"-                  }-                ]-              },-              "type": {-                "MetaInlines": [-                  {-                    "Str": "chapter"-                  }-                ]-              },-              "publisher-place": {-                "MetaInlines": [-                  {-                    "Str": "Oxford"-                  }-                ]-              },-              "container-title": {-                "MetaInlines": [-                  {-                    "Str": "Third"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "Book"-                  }-                ]-              }-            }-          }-        ]-      }-    }-  },-  [-    {-      "Header": [-        1,-        [-          "pandoc-with-citeproc-hs",-          [],-          []-        ],-        [-          {-            "Str": "Pandoc"-          },-          {-            "Space": []-          },-          {-            "Str": "with"-          },-          {-            "Space": []-          },-          {-            "Str": "citeproc-hs"-          }-        ]-      ]-    },-    {-      "Para": [-        {-          "Cite": [-            [-              {-                "citationNoteNum": 0,-                "citationSuffix": [],-                "citationHash": 0,-                "citationMode": {-                  "NormalCitation": []-                },-                "citationPrefix": [],-                "citationId": "nonexistent"-              }-            ],-            [-              {-                "Str": "???"-              }-            ]-          ]-        }-      ]-    },-    {-      "Para": [-        {-          "Cite": [-            [-              {-                "citationNoteNum": 0,-                "citationSuffix": [],-                "citationHash": 0,-                "citationMode": {-                  "AuthorInText": []-                },-                "citationPrefix": [],-                "citationId": "nonexistent"-              }-            ],-            [-              {-                "Str": "???"-              }-            ]-          ]-        }-      ]-    },-    {-      "Para": [-        {-          "Cite": [-            [-              {-                "citationNoteNum": 0,-                "citationSuffix": [],-                "citationHash": 0,-                "citationMode": {-                  "AuthorInText": []-                },-                "citationPrefix": [],-                "citationId": "item1"-              }-            ],-            [-              {-                "Str": "???"-              }-            ]-          ]-        },-        {-          "Space": []-        },-        {-          "Str": "says"-        },-        {-          "Space": []-        },-        {-          "Str": "blah."-        }-      ]-    },-    {-      "Para": [-        {-          "Cite": [-            [-              {-                "citationNoteNum": 0,-                "citationSuffix": [-                  {-                    "Str": "p."-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "30"-                  }-                ],-                "citationHash": 0,-                "citationMode": {-                  "AuthorInText": []-                },-                "citationPrefix": [],-                "citationId": "item1"-              }-            ],-            [-              {-                "Str": "???"-              }-            ]-          ]-        },-        {-          "Space": []-        },-        {-          "Str": "says"-        },-        {-          "Space": []-        },-        {-          "Str": "blah."-        }-      ]-    },-    {-      "Para": [-        {-          "Cite": [-            [-              {-                "citationNoteNum": 0,-                "citationSuffix": [-                  {-                    "Str": "p."-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "30,"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "with"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "suffix"-                  }-                ],-                "citationHash": 0,-                "citationMode": {-                  "AuthorInText": []-                },-                "citationPrefix": [],-                "citationId": "item1"-              }-            ],-            [-              {-                "Str": "???"-              }-            ]-          ]-        },-        {-          "Space": []-        },-        {-          "Str": "says"-        },-        {-          "Space": []-        },-        {-          "Str": "blah."-        }-      ]-    },-    {-      "Para": [-        {-          "Cite": [-            [-              {-                "citationNoteNum": 0,-                "citationSuffix": [],-                "citationHash": 0,-                "citationMode": {-                  "AuthorInText": []-                },-                "citationPrefix": [],-                "citationId": "item1"-              },-              {-                "citationNoteNum": 0,-                "citationSuffix": [-                  {-                    "Space": []-                  },-                  {-                    "Str": "p."-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "30"-                  }-                ],-                "citationHash": 0,-                "citationMode": {-                  "SuppressAuthor": []-                },-                "citationPrefix": [],-                "citationId": "item2"-              },-              {-                "citationNoteNum": 0,-                "citationSuffix": [],-                "citationHash": 0,-                "citationMode": {-                  "NormalCitation": []-                },-                "citationPrefix": [-                  {-                    "Str": "see"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "also"-                  }-                ],-                "citationId": "пункт3"-              }-            ],-            [-              {-                "Str": "???"-              }-            ]-          ]-        },-        {-          "Space": []-        },-        {-          "Str": "says"-        },-        {-          "Space": []-        },-        {-          "Str": "blah."-        }-      ]-    },-    {-      "Para": [-        {-          "Str": "In"-        },-        {-          "Space": []-        },-        {-          "Str": "a"-        },-        {-          "Space": []-        },-        {-          "Str": "note."-        },-        {-          "Note": [-            {-              "Para": [-                {-                  "Cite": [-                    [-                      {-                        "citationNoteNum": 0,-                        "citationSuffix": [-                          {-                            "Str": "p."-                          },-                          {-                            "Space": []-                          },-                          {-                            "Str": "12"-                          }-                        ],-                        "citationHash": 0,-                        "citationMode": {-                          "AuthorInText": []-                        },-                        "citationPrefix": [],-                        "citationId": "пункт3"-                      }-                    ],-                    [-                      {-                        "Str": "???"-                      }-                    ]-                  ]-                },-                {-                  "Space": []-                },-                {-                  "Str": "and"-                },-                {-                  "Space": []-                },-                {-                  "Str": "a"-                },-                {-                  "Space": []-                },-                {-                  "Str": "citation"-                },-                {-                  "Space": []-                },-                {-                  "Str": "without"-                },-                {-                  "Space": []-                },-                {-                  "Str": "locators"-                },-                {-                  "Space": []-                },-                {-                  "Cite": [-                    [-                      {-                        "citationNoteNum": 0,-                        "citationSuffix": [],-                        "citationHash": 0,-                        "citationMode": {-                          "NormalCitation": []-                        },-                        "citationPrefix": [],-                        "citationId": "пункт3"-                      }-                    ],-                    [-                      {-                        "Str": "???"-                      }-                    ]-                  ]-                },-                {-                  "Str": "."-                }-              ]-            }-          ]-        }-      ]-    },-    {-      "Para": [-        {-          "Str": "A"-        },-        {-          "Space": []-        },-        {-          "Str": "citation"-        },-        {-          "Space": []-        },-        {-          "Str": "group"-        },-        {-          "Space": []-        },-        {-          "Cite": [-            [-              {-                "citationNoteNum": 0,-                "citationSuffix": [-                  {-                    "Space": []-                  },-                  {-                    "Str": "chap."-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "3"-                  }-                ],-                "citationHash": 0,-                "citationMode": {-                  "NormalCitation": []-                },-                "citationPrefix": [-                  {-                    "Str": "see"-                  }-                ],-                "citationId": "item1"-              },-              {-                "citationNoteNum": 0,-                "citationSuffix": [-                  {-                    "Space": []-                  },-                  {-                    "Str": "p."-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "34-35"-                  }-                ],-                "citationHash": 0,-                "citationMode": {-                  "NormalCitation": []-                },-                "citationPrefix": [-                  {-                    "Str": "also"-                  }-                ],-                "citationId": "пункт3"-              }-            ],-            [-              {-                "Str": "???"-              }-            ]-          ]-        },-        {-          "Str": "."-        }-      ]-    },-    {-      "Para": [-        {-          "Str": "Another"-        },-        {-          "Space": []-        },-        {-          "Str": "one"-        },-        {-          "Space": []-        },-        {-          "Cite": [-            [-              {-                "citationNoteNum": 0,-                "citationSuffix": [-                  {-                    "Space": []-                  },-                  {-                    "Str": "p."-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "34-35"-                  }-                ],-                "citationHash": 0,-                "citationMode": {-                  "NormalCitation": []-                },-                "citationPrefix": [-                  {-                    "Str": "see"-                  }-                ],-                "citationId": "item1"-              }-            ],-            [-              {-                "Str": "???"-              }-            ]-          ]-        },-        {-          "Str": "."-        }-      ]-    },-    {-      "Para": [-        {-          "Str": "And"-        },-        {-          "Space": []-        },-        {-          "Str": "another"-        },-        {-          "Space": []-        },-        {-          "Str": "one"-        },-        {-          "Space": []-        },-        {-          "Str": "in"-        },-        {-          "Space": []-        },-        {-          "Str": "a"-        },-        {-          "Space": []-        },-        {-          "Str": "note."-        },-        {-          "Note": [-            {-              "Para": [-                {-                  "Str": "Some"-                },-                {-                  "Space": []-                },-                {-                  "Str": "citations"-                },-                {-                  "Space": []-                },-                {-                  "Cite": [-                    [-                      {-                        "citationNoteNum": 0,-                        "citationSuffix": [-                          {-                            "Space": []-                          },-                          {-                            "Str": "chap."-                          },-                          {-                            "Space": []-                          },-                          {-                            "Str": "3"-                          }-                        ],-                        "citationHash": 0,-                        "citationMode": {-                          "NormalCitation": []-                        },-                        "citationPrefix": [-                          {-                            "Str": "see"-                          }-                        ],-                        "citationId": "item1"-                      },-                      {-                        "citationNoteNum": 0,-                        "citationSuffix": [],-                        "citationHash": 0,-                        "citationMode": {-                          "NormalCitation": []-                        },-                        "citationPrefix": [],-                        "citationId": "пункт3"-                      },-                      {-                        "citationNoteNum": 0,-                        "citationSuffix": [],-                        "citationHash": 0,-                        "citationMode": {-                          "NormalCitation": []-                        },-                        "citationPrefix": [],-                        "citationId": "item2"-                      }-                    ],-                    [-                      {-                        "Str": "???"-                      }-                    ]-                  ]-                },-                {-                  "Str": "."-                }-              ]-            }-          ]-        }-      ]-    },-    {-      "Para": [-        {-          "Str": "Citation"-        },-        {-          "Space": []-        },-        {-          "Str": "with"-        },-        {-          "Space": []-        },-        {-          "Str": "a"-        },-        {-          "Space": []-        },-        {-          "Str": "suffix"-        },-        {-          "Space": []-        },-        {-          "Str": "and"-        },-        {-          "Space": []-        },-        {-          "Str": "locator"-        },-        {-          "Space": []-        },-        {-          "Cite": [-            [-              {-                "citationNoteNum": 0,-                "citationSuffix": [-                  {-                    "Space": []-                  },-                  {-                    "Str": "pp."-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "33,"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "35-37,"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "and"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "nowhere"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "else"-                  }-                ],-                "citationHash": 0,-                "citationMode": {-                  "NormalCitation": []-                },-                "citationPrefix": [],-                "citationId": "item1"-              }-            ],-            [-              {-                "Str": "???"-              }-            ]-          ]-        },-        {-          "Str": "."-        }-      ]-    },-    {-      "Para": [-        {-          "Str": "Citation"-        },-        {-          "Space": []-        },-        {-          "Str": "with"-        },-        {-          "Space": []-        },-        {-          "Str": "suffix"-        },-        {-          "Space": []-        },-        {-          "Str": "only"-        },-        {-          "Space": []-        },-        {-          "Cite": [-            [-              {-                "citationNoteNum": 0,-                "citationSuffix": [-                  {-                    "Space": []-                  },-                  {-                    "Str": "and"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "nowhere"-                  },-                  {-                    "Space": []-                  },-                  {-                    "Str": "else"-                  }-                ],-                "citationHash": 0,-                "citationMode": {-                  "NormalCitation": []-                },-                "citationPrefix": [],-                "citationId": "item1"-              }-            ],-            [-              {-                "Str": "???"-              }-            ]-          ]-        },-        {-          "Str": "."-        }-      ]-    },-    {-      "Para": [-        {-          "Str": "Now"-        },-        {-          "Space": []-        },-        {-          "Str": "some"-        },-        {-          "Space": []-        },-        {-          "Str": "modifiers."-        },-        {-          "Note": [-            {-              "Para": [-                {-                  "Str": "Like"-                },-                {-                  "Space": []-                },-                {-                  "Str": "a"-                },-                {-                  "Space": []-                },-                {-                  "Str": "citation"-                },-                {-                  "Space": []-                },-                {-                  "Str": "without"-                },-                {-                  "Space": []-                },-                {-                  "Str": "author:"-                },-                {-                  "Space": []-                },-                {-                  "Cite": [-                    [-                      {-                        "citationNoteNum": 0,-                        "citationSuffix": [],-                        "citationHash": 0,-                        "citationMode": {-                          "SuppressAuthor": []-                        },-                        "citationPrefix": [],-                        "citationId": "item1"-                      }-                    ],-                    [-                      {-                        "Str": "???"-                      }-                    ]-                  ]-                },-                {-                  "Str": ","-                },-                {-                  "Space": []-                },-                {-                  "Str": "and"-                },-                {-                  "Space": []-                },-                {-                  "Str": "now"-                },-                {-                  "Space": []-                },-                {-                  "Str": "Doe"-                },-                {-                  "Space": []-                },-                {-                  "Str": "with"-                },-                {-                  "Space": []-                },-                {-                  "Str": "a"-                },-                {-                  "Space": []-                },-                {-                  "Str": "locator"-                },-                {-                  "Space": []-                },-                {-                  "Cite": [-                    [-                      {-                        "citationNoteNum": 0,-                        "citationSuffix": [-                          {-                            "Space": []-                          },-                          {-                            "Str": "p."-                          },-                          {-                            "Space": []-                          },-                          {-                            "Str": "44"-                          }-                        ],-                        "citationHash": 0,-                        "citationMode": {-                          "SuppressAuthor": []-                        },-                        "citationPrefix": [],-                        "citationId": "item2"-                      }-                    ],-                    [-                      {-                        "Str": "???"-                      }-                    ]-                  ]-                },-                {-                  "Str": "."-                }-              ]-            }-          ]-        }-      ]-    },-    {-      "Para": [-        {-          "Str": "With"-        },-        {-          "Space": []-        },-        {-          "Str": "some"-        },-        {-          "Space": []-        },-        {-          "Str": "markup"-        },-        {-          "Space": []-        },-        {-          "Cite": [-            [-              {-                "citationNoteNum": 0,-                "citationSuffix": [-                  {-                    "Space": []-                  },-                  {-                    "Str": "p."-                  },-                  {-                    "Space": []-                  },-                  {-                    "Strong": [-                      {-                        "Str": "32"-                      }-                    ]-                  }-                ],-                "citationHash": 0,-                "citationMode": {-                  "NormalCitation": []-                },-                "citationPrefix": [-                  {-                    "Emph": [-                      {-                        "Str": "see"-                      }-                    ]-                  }-                ],-                "citationId": "item1"-              }-            ],-            [-              {-                "Str": "???"-              }-            ]-          ]-        },-        {-          "Str": "."-        }-      ]-    },-    {-      "Header": [-        1,-        [-          "references",-          [],-          []-        ],-        [-          {-            "Str": "References"-          }-        ]-      ]+        "c": [+          {+            "c": "tests/mhra.csl",+            "t": "Str"+          }+        ],+        "t": "MetaInlines"+      },+      "references": {+        "c": [+          {+            "c": {+              "title": {+                "c": [+                  {+                    "c": "First",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "Book",+                    "t": "Str"+                  }+                ],+                "t": "MetaInlines"+              },+              "id": {+                "c": [+                  {+                    "c": "item1",+                    "t": "Str"+                  }+                ],+                "t": "MetaInlines"+              },+              "issued": {+                "c": {+                  "year": {+                    "c": "2005",+                    "t": "MetaString"+                  }+                },+                "t": "MetaMap"+              },+              "author": {+                "c": {+                  "given": {+                    "c": [+                      {+                        "c": [+                          {+                            "c": "John",+                            "t": "Str"+                          }+                        ],+                        "t": "MetaInlines"+                      }+                    ],+                    "t": "MetaList"+                  },+                  "family": {+                    "c": [+                      {+                        "c": "Doe",+                        "t": "Str"+                      }+                    ],+                    "t": "MetaInlines"+                  }+                },+                "t": "MetaMap"+              },+              "publisher": {+                "c": [+                  {+                    "c": "Cambridge",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "University",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "Press",+                    "t": "Str"+                  }+                ],+                "t": "MetaInlines"+              },+              "type": {+                "c": [+                  {+                    "c": "book",+                    "t": "Str"+                  }+                ],+                "t": "MetaInlines"+              },+              "publisher-place": {+                "c": [+                  {+                    "c": "Cambridge",+                    "t": "Str"+                  }+                ],+                "t": "MetaInlines"+              }+            },+            "t": "MetaMap"+          },+          {+            "c": {+              "page": {+                "c": [+                  {+                    "c": "33-34",+                    "t": "Str"+                  }+                ],+                "t": "MetaInlines"+              },+              "title": {+                "c": [+                  {+                    "c": "Article",+                    "t": "Str"+                  }+                ],+                "t": "MetaInlines"+              },+              "volume": {+                "c": "6",+                "t": "MetaString"+              },+              "id": {+                "c": [+                  {+                    "c": "item2",+                    "t": "Str"+                  }+                ],+                "t": "MetaInlines"+              },+              "issued": {+                "c": {+                  "year": {+                    "c": "2006",+                    "t": "MetaString"+                  }+                },+                "t": "MetaMap"+              },+              "author": {+                "c": {+                  "given": {+                    "c": [+                      {+                        "c": [+                          {+                            "c": "John",+                            "t": "Str"+                          }+                        ],+                        "t": "MetaInlines"+                      }+                    ],+                    "t": "MetaList"+                  },+                  "family": {+                    "c": [+                      {+                        "c": "Doe",+                        "t": "Str"+                      }+                    ],+                    "t": "MetaInlines"+                  }+                },+                "t": "MetaMap"+              },+              "container-title": {+                "c": [+                  {+                    "c": "Journal",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "of",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "Generic",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "Studies",+                    "t": "Str"+                  }+                ],+                "t": "MetaInlines"+              },+              "type": {+                "c": [+                  {+                    "c": "article-journal",+                    "t": "Str"+                  }+                ],+                "t": "MetaInlines"+              }+            },+            "t": "MetaMap"+          },+          {+            "c": {+              "title": {+                "c": [+                  {+                    "c": "Why",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "Water",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "Is",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "Wet",+                    "t": "Str"+                  }+                ],+                "t": "MetaInlines"+              },+              "id": {+                "c": [+                  {+                    "c": "пункт3",+                    "t": "Str"+                  }+                ],+                "t": "MetaInlines"+              },+              "issued": {+                "c": {+                  "year": {+                    "c": "2007",+                    "t": "MetaString"+                  }+                },+                "t": "MetaMap"+              },+              "author": {+                "c": [+                  {+                    "c": {+                      "given": {+                        "c": [+                          {+                            "c": [+                              {+                                "c": "John",+                                "t": "Str"+                              }+                            ],+                            "t": "MetaInlines"+                          }+                        ],+                        "t": "MetaList"+                      },+                      "family": {+                        "c": [+                          {+                            "c": "Doe",+                            "t": "Str"+                          }+                        ],+                        "t": "MetaInlines"+                      }+                    },+                    "t": "MetaMap"+                  },+                  {+                    "c": {+                      "given": {+                        "c": [+                          {+                            "c": [+                              {+                                "c": "Jenny",+                                "t": "Str"+                              }+                            ],+                            "t": "MetaInlines"+                          }+                        ],+                        "t": "MetaList"+                      },+                      "family": {+                        "c": [+                          {+                            "c": "Roe",+                            "t": "Str"+                          }+                        ],+                        "t": "MetaInlines"+                      }+                    },+                    "t": "MetaMap"+                  }+                ],+                "t": "MetaList"+              },+              "container-title": {+                "c": [+                  {+                    "c": "Third",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "Book",+                    "t": "Str"+                  }+                ],+                "t": "MetaInlines"+              },+              "editor": {+                "c": {+                  "given": {+                    "c": [+                      {+                        "c": [+                          {+                            "c": "Sam",+                            "t": "Str"+                          }+                        ],+                        "t": "MetaInlines"+                      }+                    ],+                    "t": "MetaList"+                  },+                  "family": {+                    "c": [+                      {+                        "c": "Smith",+                        "t": "Str"+                      }+                    ],+                    "t": "MetaInlines"+                  }+                },+                "t": "MetaMap"+              },+              "publisher": {+                "c": [+                  {+                    "c": "Oxford",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "University",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "Press",+                    "t": "Str"+                  }+                ],+                "t": "MetaInlines"+              },+              "type": {+                "c": [+                  {+                    "c": "chapter",+                    "t": "Str"+                  }+                ],+                "t": "MetaInlines"+              },+              "publisher-place": {+                "c": [+                  {+                    "c": "Oxford",+                    "t": "Str"+                  }+                ],+                "t": "MetaInlines"+              }+            },+            "t": "MetaMap"+          }+        ],+        "t": "MetaList"+      }+    }+  },+  [+    {+      "c": [+        1,+        [+          "pandoc-with-citeproc-hs",+          [],+          []+        ],+        [+          {+            "c": "Pandoc",+            "t": "Str"+          },+          {+            "c": [],+            "t": "Space"+          },+          {+            "c": "with",+            "t": "Str"+          },+          {+            "c": [],+            "t": "Space"+          },+          {+            "c": "citeproc-hs",+            "t": "Str"+          }+        ]+      ],+      "t": "Header"+    },+    {+      "c": [+        {+          "c": [+            [+              {+                "citationId": "nonexistent",+                "citationSuffix": [],+                "citationHash": 0,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "NormalCitation"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "???",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": [+            [+              {+                "citationId": "nonexistent",+                "citationSuffix": [],+                "citationHash": 0,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "AuthorInText"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "???",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [],+                "citationHash": 0,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "AuthorInText"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "???",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "says",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "blah.",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [+                  {+                    "c": "p.",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "30",+                    "t": "Str"+                  }+                ],+                "citationHash": 0,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "AuthorInText"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "???",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "says",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "blah.",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [+                  {+                    "c": "p.",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "30,",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "with",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "suffix",+                    "t": "Str"+                  }+                ],+                "citationHash": 0,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "AuthorInText"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "???",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "says",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "blah.",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [],+                "citationHash": 0,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "AuthorInText"+                },+                "citationNoteNum": 0+              },+              {+                "citationId": "item2",+                "citationSuffix": [+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "p.",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "30",+                    "t": "Str"+                  }+                ],+                "citationHash": 0,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "SuppressAuthor"+                },+                "citationNoteNum": 0+              },+              {+                "citationId": "пункт3",+                "citationSuffix": [],+                "citationHash": 0,+                "citationPrefix": [+                  {+                    "c": "see",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "also",+                    "t": "Str"+                  }+                ],+                "citationMode": {+                  "c": [],+                  "t": "NormalCitation"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "???",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "says",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "blah.",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": "In",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "a",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "note.",+          "t": "Str"+        },+        {+          "c": [+            {+              "c": [+                {+                  "c": [+                    [+                      {+                        "citationId": "пункт3",+                        "citationSuffix": [+                          {+                            "c": "p.",+                            "t": "Str"+                          },+                          {+                            "c": [],+                            "t": "Space"+                          },+                          {+                            "c": "12",+                            "t": "Str"+                          }+                        ],+                        "citationHash": 0,+                        "citationPrefix": [],+                        "citationMode": {+                          "c": [],+                          "t": "AuthorInText"+                        },+                        "citationNoteNum": 0+                      }+                    ],+                    [+                      {+                        "c": "???",+                        "t": "Str"+                      }+                    ]+                  ],+                  "t": "Cite"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "and",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "a",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "citation",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "without",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "locators",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": [+                    [+                      {+                        "citationId": "пункт3",+                        "citationSuffix": [],+                        "citationHash": 0,+                        "citationPrefix": [],+                        "citationMode": {+                          "c": [],+                          "t": "NormalCitation"+                        },+                        "citationNoteNum": 0+                      }+                    ],+                    [+                      {+                        "c": "???",+                        "t": "Str"+                      }+                    ]+                  ],+                  "t": "Cite"+                },+                {+                  "c": ".",+                  "t": "Str"+                }+              ],+              "t": "Para"+            }+          ],+          "t": "Note"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": "A",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "citation",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "group",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "chap.",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "3",+                    "t": "Str"+                  }+                ],+                "citationHash": 0,+                "citationPrefix": [+                  {+                    "c": "see",+                    "t": "Str"+                  }+                ],+                "citationMode": {+                  "c": [],+                  "t": "NormalCitation"+                },+                "citationNoteNum": 0+              },+              {+                "citationId": "пункт3",+                "citationSuffix": [+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "p.",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "34-35",+                    "t": "Str"+                  }+                ],+                "citationHash": 0,+                "citationPrefix": [+                  {+                    "c": "also",+                    "t": "Str"+                  }+                ],+                "citationMode": {+                  "c": [],+                  "t": "NormalCitation"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "???",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": ".",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": "Another",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "one",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "p.",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "34-35",+                    "t": "Str"+                  }+                ],+                "citationHash": 0,+                "citationPrefix": [+                  {+                    "c": "see",+                    "t": "Str"+                  }+                ],+                "citationMode": {+                  "c": [],+                  "t": "NormalCitation"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "???",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": ".",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": "And",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "another",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "one",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "in",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "a",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "note.",+          "t": "Str"+        },+        {+          "c": [+            {+              "c": [+                {+                  "c": "Some",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "citations",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": [+                    [+                      {+                        "citationId": "item1",+                        "citationSuffix": [+                          {+                            "c": [],+                            "t": "Space"+                          },+                          {+                            "c": "chap.",+                            "t": "Str"+                          },+                          {+                            "c": [],+                            "t": "Space"+                          },+                          {+                            "c": "3",+                            "t": "Str"+                          }+                        ],+                        "citationHash": 0,+                        "citationPrefix": [+                          {+                            "c": "see",+                            "t": "Str"+                          }+                        ],+                        "citationMode": {+                          "c": [],+                          "t": "NormalCitation"+                        },+                        "citationNoteNum": 0+                      },+                      {+                        "citationId": "пункт3",+                        "citationSuffix": [],+                        "citationHash": 0,+                        "citationPrefix": [],+                        "citationMode": {+                          "c": [],+                          "t": "NormalCitation"+                        },+                        "citationNoteNum": 0+                      },+                      {+                        "citationId": "item2",+                        "citationSuffix": [],+                        "citationHash": 0,+                        "citationPrefix": [],+                        "citationMode": {+                          "c": [],+                          "t": "NormalCitation"+                        },+                        "citationNoteNum": 0+                      }+                    ],+                    [+                      {+                        "c": "???",+                        "t": "Str"+                      }+                    ]+                  ],+                  "t": "Cite"+                },+                {+                  "c": ".",+                  "t": "Str"+                }+              ],+              "t": "Para"+            }+          ],+          "t": "Note"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": "Citation",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "with",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "a",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "suffix",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "and",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "locator",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "pp.",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "33,",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "35-37,",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "and",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "nowhere",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "else",+                    "t": "Str"+                  }+                ],+                "citationHash": 0,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "NormalCitation"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "???",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": ".",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": "Citation",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "with",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "suffix",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "only",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "and",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "nowhere",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "else",+                    "t": "Str"+                  }+                ],+                "citationHash": 0,+                "citationPrefix": [],+                "citationMode": {+                  "c": [],+                  "t": "NormalCitation"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "???",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": ".",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": "Now",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "some",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "modifiers.",+          "t": "Str"+        },+        {+          "c": [+            {+              "c": [+                {+                  "c": "Like",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "a",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "citation",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "without",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "author:",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": [+                    [+                      {+                        "citationId": "item1",+                        "citationSuffix": [],+                        "citationHash": 0,+                        "citationPrefix": [],+                        "citationMode": {+                          "c": [],+                          "t": "SuppressAuthor"+                        },+                        "citationNoteNum": 0+                      }+                    ],+                    [+                      {+                        "c": "???",+                        "t": "Str"+                      }+                    ]+                  ],+                  "t": "Cite"+                },+                {+                  "c": ",",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "and",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "now",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "Doe",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "with",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "a",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": "locator",+                  "t": "Str"+                },+                {+                  "c": [],+                  "t": "Space"+                },+                {+                  "c": [+                    [+                      {+                        "citationId": "item2",+                        "citationSuffix": [+                          {+                            "c": [],+                            "t": "Space"+                          },+                          {+                            "c": "p.",+                            "t": "Str"+                          },+                          {+                            "c": [],+                            "t": "Space"+                          },+                          {+                            "c": "44",+                            "t": "Str"+                          }+                        ],+                        "citationHash": 0,+                        "citationPrefix": [],+                        "citationMode": {+                          "c": [],+                          "t": "SuppressAuthor"+                        },+                        "citationNoteNum": 0+                      }+                    ],+                    [+                      {+                        "c": "???",+                        "t": "Str"+                      }+                    ]+                  ],+                  "t": "Cite"+                },+                {+                  "c": ".",+                  "t": "Str"+                }+              ],+              "t": "Para"+            }+          ],+          "t": "Note"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        {+          "c": "With",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "some",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": "markup",+          "t": "Str"+        },+        {+          "c": [],+          "t": "Space"+        },+        {+          "c": [+            [+              {+                "citationId": "item1",+                "citationSuffix": [+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": "p.",+                    "t": "Str"+                  },+                  {+                    "c": [],+                    "t": "Space"+                  },+                  {+                    "c": [+                      {+                        "c": "32",+                        "t": "Str"+                      }+                    ],+                    "t": "Strong"+                  }+                ],+                "citationHash": 0,+                "citationPrefix": [+                  {+                    "c": [+                      {+                        "c": "see",+                        "t": "Str"+                      }+                    ],+                    "t": "Emph"+                  }+                ],+                "citationMode": {+                  "c": [],+                  "t": "NormalCitation"+                },+                "citationNoteNum": 0+              }+            ],+            [+              {+                "c": "???",+                "t": "Str"+              }+            ]+          ],+          "t": "Cite"+        },+        {+          "c": ".",+          "t": "Str"+        }+      ],+      "t": "Para"+    },+    {+      "c": [+        1,+        [+          "references",+          [],+          []+        ],+        [+          {+            "c": "References",+            "t": "Str"+          }+        ]+      ],+      "t": "Header"     }   ] ]
tests/test-pandoc-citeproc.hs view
@@ -1,30 +1,42 @@ module Main where import System.Process import System.Exit+import System.Directory+import System.FilePath import Text.Printf import System.IO import Data.Monoid (mempty) import Data.Algorithm.Diff import Text.Printf-import Data.Aeson (decode)+import qualified Data.Aeson as Aeson import Data.Aeson.Encode.Pretty import Text.Pandoc.Definition import qualified Data.ByteString.Lazy.Char8 as BL+import qualified Data.ByteString.Char8 as B import qualified Text.Pandoc.UTF8 as UTF8 import Text.Pandoc.Process (pipeProcess)+import qualified Data.Yaml as Yaml (decode)  main = do-  testCase "chicago-author-date"-  testCase "ieee"-  testCase "mhra"-  exitWith ExitSuccess+  citeprocTests <- mapM testCase ["chicago-author-date", "ieee", "mhra"]+  fs <- filter (\f -> takeExtension f `elem` [".bibtex",".biblatex"])+           `fmap` getDirectoryContents "tests/biblio2yaml"+  biblio2yamlTests <- mapM biblio2yamlTest fs+  let allTests = citeprocTests ++ biblio2yamlTests+  let numTests = length allTests+  let passingTests = length $ filter (== True) allTests+  err $ "Passed " ++ show passingTests ++ " out of " ++ show numTests +++        " tests."+  if all id citeprocTests && all id biblio2yamlTests+     then exitWith ExitSuccess+     else exitWith $ ExitFailure 1  err :: String -> IO () err = hPutStrLn stderr -testCase :: String -> IO ()+testCase :: String -> IO Bool testCase csl = do-  err $ "TEST: " ++ csl+  hPutStr stderr $ "[" ++ csl ++ ".in.json] "   indata <- BL.readFile $ "tests/" ++ csl ++ ".in.json"   expected <- BL.readFile $ "tests/" ++ csl ++ ".expected.json"   (ec, result, errout) <- pipeProcess@@ -34,9 +46,9 @@   if ec == ExitSuccess      then do        let resultDoc :: Maybe Pandoc-           resultDoc = decode result+           resultDoc = Aeson.decode result        let expectedDoc :: Maybe Pandoc-           expectedDoc = decode expected+           expectedDoc = Aeson.decode expected        let result' = maybe [] (BL.lines                      . encodePretty' Config{ confIndent = 2                                            , confCompare = compare } )@@ -46,22 +58,63 @@                                            , confCompare = compare } )                      expectedDoc        if result' == expected'-          then return ()+          then err "PASSED" >> return True           else do+            err $ "FAILED (-expected, +actual)"             let diff = getDiff expected' result'             err $ showDiff (1,1) diff-            exitWith $ ExitFailure 1+            return False      else do+       err "ERROR"        err $ "Error status " ++ show ec        err $ UTF8.toStringLazy errout-       exitWith ec+       return False  showDiff :: (Int,Int) -> [Diff BL.ByteString] -> String showDiff _ []             = "" showDiff (l,r) (First ln : ds) =-  printf "+%4d " l ++ (UTF8.toStringLazy ln) ++ "\n" ++ showDiff (l+1,r) ds+  printf "-%4d " l ++ (UTF8.toStringLazy ln) ++ "\n" ++ showDiff (l+1,r) ds showDiff (l,r) (Second ln : ds) =-  printf "-%4d " r ++ (UTF8.toStringLazy ln) ++ "\n" ++ showDiff (l,r+1) ds-showDiff (l,r) (Both _ _ : ds) =-  showDiff (l+1,r+1) ds+  printf "+%4d " r ++ (UTF8.toStringLazy ln) ++ "\n" ++ showDiff (l,r+1) ds+showDiff (l,r) (Both ln _ : ds) =+  printf " %4d " r ++ (UTF8.toStringLazy ln) ++ "\n" ++ showDiff (l+1,r+1) ds +biblio2yamlTest :: String -> IO Bool+biblio2yamlTest fp = do+  hPutStr stderr $ "[biblio2yaml/" ++ fp ++ "] "+  let yamlf = "tests/biblio2yaml/" ++ fp+  raw <- BL.readFile yamlf+  let yamlStart = BL.pack "---"+  let (biblines, yamllines) = break (== yamlStart) $ BL.lines raw+  let bib = BL.unlines biblines+  let expected = BL.unlines yamllines+  (ec, result, errout) <- pipeProcess+                     (Just [("LANG","en_US.UTF-8"),("HOME",".")])+                     "dist/build/biblio2yaml/biblio2yaml"+                     ["-f", drop 1 $ takeExtension fp] bib+  if ec == ExitSuccess+     then do+       let expectedDoc :: Maybe Aeson.Value+           expectedDoc = Yaml.decode $ B.concat $ BL.toChunks expected+       let resultDoc   :: Maybe Aeson.Value+           resultDoc   = Yaml.decode $ B.concat $ BL.toChunks result+       let result' = maybe [] (BL.lines+                     . encodePretty' Config{ confIndent = 2+                                           , confCompare = compare } )+                     resultDoc+       let expected' = maybe [] (BL.lines+                     . encodePretty' Config{ confIndent = 2+                                           , confCompare = compare } )+                     expectedDoc+       if expected' == result'+          then err "PASSED" >> return True+          else do+            err $ "FAILED (-expected, +actual)"+            let diff = getDiff expected' result'+            err $ showDiff (1,1) diff+            return False+     else do+       err "ERROR"+       err $ "Error status " ++ show ec+       err $ UTF8.toStringLazy errout+       return False