I guess these kinda toy scripts/utilities get written a lot as they're not really super-common and there's no well-known standard.
I wrote my own version too, a while back, because it seemed like it would be useful (and indeed it has been) - a golang tool to list/search/run named blocks from markdown, joining multiple blocks together if instructed to do so:
We've expanded significantly onto the idea of a toy script/utility to bring multi-modality (editor, notebook, terminal, browser) with shared sessions to what's at the core, a universal task runner (see architecture link below).
I'd love to chat about combining efforts if you love hacking on this. The same goes for the author of `mdx`.
I wrote my own version too, a while back, because it seemed like it would be useful (and indeed it has been) - a golang tool to list/search/run named blocks from markdown, joining multiple blocks together if instructed to do so:
https://github.com/skx/runme