eyeseast / python-frontmatter

Parse and manage posts with YAML (or other) frontmatter
http://python-frontmatter.rtfd.io
MIT License
329 stars 43 forks source link

Feature request: Preserve quotes in YAML frontmatter #114

Open asmaier opened 8 months ago

asmaier commented 8 months ago

At the moment frontmatter will change the quotes around string values in a YAML frontmatter to single quotes even if the string value itself did not change at all. It would be nice if frontmatter would offer a option preserve_quotes like ruamel.yaml

https://stackoverflow.com/questions/42094599/preserving-quotes-in-ruamel-yaml

Such an option would prevent unnecessary changes to a file updated with frontmatter and would make the git history of such files more clean.