Closed
Description
Describe the bug
Do parsing the text then format it.
let doc = YAML.parseDocument(text);
console.log(YAML.stringify(doc));
To Reproduce
input text:
a: 1
#a: 1
# b: 2
got result:
a: 1
Expected behaviour
a: 1
#a: 1
# b: 2
Versions (please complete the following information):
- Environment: Node.js v22.6.0
yaml
: 2.5.1
Additional context
None