Allow citation-abbreviations in defaults file.
commitbc3f16b0c18e0f04a3e9d3e162f57f8e86cadead
authorJohn MacFarlane <jgm@berkeley.edu>
dateThu 29 Oct 2020, 15:54 (6 years ago)
parentbd7c9eb
MANUAL.txt+1
@@ -1533,6 +1533,7 @@ csl: ieee
15331533bibliography:
15341534- foobar.bib
15351535- barbaz.json
1536+citation-abbreviations: abbrevs.json
15361537
15371538# Filters will be assumed to be Lua filters if they have
15381539# the .lua extension, and json filters otherwise. But
src/Text/Pandoc/App/Opt.hs+5
@@ -367,6 +367,11 @@ doOpt (k',v) = do
367367 foldr addItem o xs)
368368 <|>
369369 (parseYAML v >>= \(x :: Text) -> return $ \o -> addItem x o)
370+ "citation-abbreviations" ->
371+ parseYAML v >>= \x ->
372+ return (\o -> o{ optMetadata =
373+ addMeta "citation-abbreviations" (T.unpack x)
374+ (optMetadata o) })
370375 "ipynb-output" ->
371376 parseYAML v >>= \x -> return (\o -> o{ optIpynbOutput = x })
372377 "include-before-body" ->