For scenarios like the one you describe I simply use an online TOML to YAML converter
P.S. I really cannot be bothered with YAML (due to all the peculiarities of its spec), so unless there is good reason to use it, I always prefer TOML (despite the replication in tables).