Pandoc parsed YAML with the yaml package, which depends on the C
library libyaml. It now uses yamlet, a pure Haskell YAML 1.2 parser.
Values still go through the existing aeson instances.
Behavior changes:
- YAML errors show the file, the line and the column, with the
offending line. In metadata blocks the line is the line in the
document.
- `yes`, `no`, `on`, `off`, `y` and `n` are strings,
not booleans, as in YAML 1.2. This restores the behavior before
the switch from HsYAML.
- Duplicate keys in a mapping are an error. They were a warning.
- .5, .inf and .nan are numbers.
Text.Pandoc.Translations: readTranslations takes the path of the
file, for error messages [API change].