Yes! I fully agree that testable example stuff is essential. I made a PR to add mld support to mdx to do exactly this a while back, but I’m afraid I got a bit distracted from it and didn’t get around to making the required changes: https://github.com/realworldocaml/mdx/pull/377 - the PR includes an example here if you’re interested in seeing what it looks like. It supports the dune ‘promote’ workflow, so you should be able to edit then dune runtest; dune promote to get the results corrected. I should get back to it!
1 Like