pandoc-3.1.2: Conversion between markup formats
CopyrightCopyright (C) 2020-2023 John MacFarlane
LicenseGNU GPL, version 2 or above
MaintainerJohn MacFarlane <jgm@berkeley.edu>
Stabilityalpha
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Text.Pandoc.Readers.CslJson

Description

Parses CSL JSON bibliographies into a Pandoc document with empty body and references and nocite fields in the metadata. A wildcard nocite is used so that if the document is rendered in another format, the entire bibliography will be printed.

https://citeproc-js.readthedocs.io/en/latest/csl-json/markup.html.

Synopsis

Documentation

readCslJson :: (PandocMonad m, ToSources a) => ReaderOptions -> a -> m Pandoc Source #

Read CSL JSON from an input string and return a Pandoc document. The document will have only metadata, with an empty body. The metadata will contain a references field with the bibliography entries, and a nocite field with the wildcard `[@*]`.