document.yaml instead of document.md.
Same Parsing, Different Output
The YAML renderer uses the same parsing logic as the JSON renderer. All the same markdown structures work:- Headers become keys
- Lists become sequences
- Nested headers create nested mappings
{% item %}blocks create sequence elements
format setting.
Data Fences
Bothjson and yaml fences work in either renderer. This means you can write literal values in whichever format you prefer: