7fc6919f90
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.
15 lines
194 B
Markdown
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"])]})
|
|
[]
|
|
```
|