Allow citation-abbreviations in defaults file.

This commit is contained in:
John MacFarlane 2020-10-29 15:54:50 -07:00
parent bd7c9eb32b
commit bc3f16b0c1
2 changed files with 6 additions and 0 deletions

View file

@ -1533,6 +1533,7 @@ csl: ieee
bibliography:
- foobar.bib
- barbaz.json
citation-abbreviations: abbrevs.json
# Filters will be assumed to be Lua filters if they have
# the .lua extension, and json filters otherwise. But

View file

@ -367,6 +367,11 @@ doOpt (k',v) = do
foldr addItem o xs)
<|>
(parseYAML v >>= \(x :: Text) -> return $ \o -> addItem x o)
"citation-abbreviations" ->
parseYAML v >>= \x ->
return (\o -> o{ optMetadata =
addMeta "citation-abbreviations" (T.unpack x)
(optMetadata o) })
"ipynb-output" ->
parseYAML v >>= \x -> return (\o -> o{ optIpynbOutput = x })
"include-before-body" ->