YAML::PP::Preserve
# Without preserving
% echo '---
ref: &alias
- 23
- 24
z: [a, "b", c]
y: 2
x: *alias
literal: |
line 1
line 2
' | yamlpp-load-dump -P0
---
literal: |
line 1
line 2
ref: &1
- 23
- 24
x: *1
y: 2
z:
- a
- b
- c
Preserving order, alias names, quoting, flow style
% echo '---
ref: &alias
- 23
- 24
z: [a, "b", c]
y: 2
x: *alias
literal: |
line 1
line 2
' | yamlpp-load-dump
---
ref: &alias
- 23
- 24
z: [a, "b", c]
y: 2
x: *alias
literal: |
line 1
line 2