mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-30 12:15:56 +00:00
When multiple YAML metadata blocks are used, and two define
the same field, the value defined first takes precedence,
according to the manual. This was changed briefly in
ba3ee62323. This commit
reverts to the original behavior and adds a test case.
194 B
194 B
If multiple blocks define a field, the first is used.
% pandoc -s -t native
---
foo: bar
...
---
foo: bim
...
^D
Pandoc (Meta {unMeta = fromList [("foo",MetaInlines [Str "bar"])]})
[]