Org reader: handle #+bibliography: as metadata...

so that it can work with citeproc.
This commit is contained in:
John MacFarlane 2022-03-04 22:50:17 -08:00
parent 697c814286
commit 0124e8b095

View file

@ -78,6 +78,7 @@ a ~~> b = (a, b)
keywordHandlers :: PandocMonad m => Map Text (OrgParser m ())
keywordHandlers = Map.fromList
[ "author" ~~> lineOfInlines `parseThen` collectLines "author"
, "bibliography" ~~> fmap pure anyLine `parseThen` B.setMeta "bibliography"
, "creator" ~~> fmap pure anyLine `parseThen` B.setMeta "creator"
, "date" ~~> lineOfInlines `parseThen` B.setMeta "date"
, "description" ~~> lineOfInlines `parseThen` collectLines "description"