Mdx – Execute Your Markdown Code Blocks, Now in Go
8 comments
·October 26, 2024dim0x69
nicoburns
You might want to reconsider the name. MDX is already a well-known technology that combines markdown with JSX https://github.com/mdx-js/mdx/
lagniappe
This is really cool, I was just thinking recently about something like that. What do you plan to add to it next? What do you think of Go?
wdavidw
It is similar to how CoffeeScript literate works.
nikolay
You really didn't know Runme [0] existed?
stevekemp
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:
Hey HN!
I recently came across makedown here on HN and loved the concept. Wanting to learn Go, I thought this could be a great starter project - so I started working on my own Go implementation, which I’m calling mdx (https://github.com/dim0x69/mdx).
Key Features:
- Define dependencies between commands
- Supports shebangs
- Ability to pass arguments to code blocks
Would love feedback and thoughts!
Ref. makedown: https://github.com/tzador/makedown. Thanks for the idea! :)