mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-26 01:36:03 +03:00
[GH-ISSUE #721] YAML schema build can not handle arrays with multiple items #517
Labels
No labels
bug
enhancement
enhancement
enhancement
fixed in next
fixed in next
fixed in next
new rule
new rule
new rule
pull-request
question
refactoring
refactoring
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/markdownlint#517
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @aepfli on GitHub (Feb 15, 2023).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/721
issue
If there is a configuration parameter, which is an array of elements, and you have multiple default elements, it is not generating valid yaml
input
actual
expected
Proposal
By using
YAML.stringifywe have the appropriate behavior, with the usage of https://www.npmjs.com/package/yaml (additional dependency). Instead of doing replacements within the JSON string to currently generate the YAML.