Closed
Description
Describe the bug
Inline comments are removed from inline lists.
To Reproduce
const input = 'key1: [value1, value2] # comment';
const parsed = yaml.parseDocument(input);
const result = parsed.toString();
expect(result).toContain("# comment");
Expected behaviour
Comments should be preserved.
Versions:
- Environment: Chrome Version 110.0.5481.100 (Official Build) (arm64)
yaml
: 2.2.1