pandoc/test/command/multiple-metadata-blocks.md
John MacFarlane 7fc6919f90 Markdown reader: Fixed regression on left-biased union for metadata.
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.
2017-03-05 09:28:44 +01:00

15 lines
194 B
Markdown

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"])]})
[]
```