pandoc/test/command/4054.md
John MacFarlane fef5770591 Fix regression with --metadata.
It should replace a metadata value set in the document
itself, rather than creating a list including a new value.

Closes #4054.
2017-11-08 21:54:23 -08:00

258 B

% pandoc -t native -s -M title=New
% Old
^D
Pandoc (Meta {unMeta = fromList [("title",MetaString "New")]})
[]
% pandoc -t native -s -M foo=1 -M foo=2
^D
Pandoc (Meta {unMeta = fromList [("foo",MetaList [MetaString "1",MetaString "2"])]})
[]