Hacker News new | ask | show | jobs
by tipiirai 883 days ago
I prefer YAML on my Markdown front matter. It's more readable because of no brackets, quotes, or commas.
2 comments

Seconding the sibling, YAML may look nice but it's absolutely full of awful confusing behavior. If you don't like JSON for human-written stuff, see TOML or the like. I think JSON is great for serialization, it's so simple, but I agree we need something more readable like TOML for human-written data.

https://ruudvanasseldonk.com/2023/01/11/the-yaml-document-fr...

Do you convert your Markdown front matter to TOML? Also for your clients?
> I prefer YAML on my Markdown front matter. It's more readable because of no brackets, quotes, or commas.

YAML is full of pitfalls. I think the brackets/braces and quotes are worth giving up a small amount readability to eliminate the ambiguity.