A much better way to config.
The only issue is the bundle size. js-yaml costs 171.9 kB, yaml costs 93.1 kB, while the markdown-deck is 93.7 kB now.
Or maybe go with an in-house naive front-matter implementation. It's just a few configurations, won't need full featured yaml parser.