Not sure what the upsides and downsides are.
Not sure what the upsides and downsides are.
It can't be. Using "markdown" for config really means building a shitty ad hoc configuration language and embedding it in markdown. I've seen this a few times and it's always a disaster.
The only way I've found to make configuration tolerable is to go in the opposite direction and turn it into code with a declarative eDSL. For example Pulumi's typescript API is an absolute godsend after years of toiling away on HCL and YAML.
Indeed, if you’re going to make use of Markdown to store structured data like a config file, I wager the result will start looking a lot like YAML. At which point - why not just use YAML directly?
YAML is a decent solution to their problem which is:
they:
have:
- so
- many
- nested
- levels:
of:
configuration:
without:
any:
- abstractions &that-arent-ugly
Markdown can only make it worse.Worked quite well as one-offs but I'm not sure that scales wrt its usability and maintenance.
Things like jupyter notebooks and observablehq.com seem to be bringing in a breath of fresh air to literate programming.
Markdown for comments in config files? Absolutely.
It works by embedding yaml code blocks into a markdown file.
It’s actually not completely awful and has proven somewhat useful to have a configuration clearly documented within the config.
https://github.com/Azure/autorest/blob/main/docs/generate/re...
That sounds unlikely. Where did you hear that?