git.iko.soy/typeable/pandoc
on master help sign in
Allow citation-abbreviations in defaults file.
bc3f16bJohn MacFarlane
MANUAL.txt+1
@@ -1533,6 +1533,7 @@ csl: ieee
1533bibliography:
1533bibliography:
1534- foobar.bib
1534- foobar.bib
1535- barbaz.json
1535- barbaz.json
1536+citation-abbreviations: abbrevs.json
1536
1537
1537# Filters will be assumed to be Lua filters if they have
1538# Filters will be assumed to be Lua filters if they have
1538# the .lua extension, and json filters otherwise. But
1539# the .lua extension, and json filters otherwise. But
src/Text/Pandoc/App/Opt.hs+5
@@ -367,6 +367,11 @@ doOpt (k',v) = do
367 foldr addItem o xs)
367 foldr addItem o xs)
368 <|>
368 <|>
369 (parseYAML v >>= \(x :: Text) -> return $ \o -> addItem x o)
369 (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) })
370 "ipynb-output" ->
375 "ipynb-output" ->
371 parseYAML v >>= \x -> return (\o -> o{ optIpynbOutput = x })
376 parseYAML v >>= \x -> return (\o -> o{ optIpynbOutput = x })
372 "include-before-body" ->
377 "include-before-body" ->