diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-11-08 21:54:23 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-11-08 21:54:23 -0800 |
commit | fef5770591e7d3a185dc8d7dc2b70594732b0367 (patch) | |
tree | 2d1da31b5b88bd64af5a8ec4bd8be0d9c0efebe1 /test/command | |
parent | c6338fa88340c76271934e90d96fa9ff606ae78a (diff) | |
download | pandoc-fef5770591e7d3a185dc8d7dc2b70594732b0367.tar.gz |
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.
Diffstat (limited to 'test/command')
-rw-r--r-- | test/command/4054.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/command/4054.md b/test/command/4054.md new file mode 100644 index 000000000..3689773c4 --- /dev/null +++ b/test/command/4054.md @@ -0,0 +1,14 @@ +``` +% 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"])]}) +[] +``` |