jlevy / atom-flowmark

Markdown auto-formatting, beautification, and cleanup for Atom
Apache License 2.0
43 stars 7 forks source link

Auto-format YAML frontmatter #47

Open jlevy opened 4 years ago

jlevy commented 4 years ago

As a convenience, Flowmark should work on a Markdown file with YAML frontmatter, and then auto-format the YAML. This would also catch lots of syntax errors, normalize quote usage in YAML, etc., which are ongoing pain points for Markdown files with frontmatter.

Also as a convenience this should work on plain YAML the same way (need to auto-detect somehow even if there are no --- markers however).

Settings should be 2-space indents, and other sane defaults. Probably insist on quotes for most strings too, if possible. (Things like @ inside strings breaking YAML is a common pain point for authors.)