News for hackers. Stuff that matters.
Re:Mdx – Execute Your Markdown Code Blocks, Now in Go by dim0x69 on Saturday October 26, 2024 @01:34AM (#41952780)
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! :)

Re:Mdx – Execute Your Markdown Code Blocks, Now in Go by nicoburns on Saturday October 26, 2024 @03:19AM (#41953159)
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/
Re:Mdx – Execute Your Markdown Code Blocks, Now in Go by zoover2020 on Saturday October 26, 2024 @07:48AM (#41954163)
Came here to say this, confusion ensued.
Re:Mdx – Execute Your Markdown Code Blocks, Now in Go by edsammy on Saturday October 26, 2024 @09:21AM (#41954579)
marko or godown would be fun
Re:Mdx – Execute Your Markdown Code Blocks, Now in Go by no_wizard on Saturday October 26, 2024 @10:07AM (#41954799)
Marko too is taken https://markojs.com/
Re:Mdx – Execute Your Markdown Code Blocks, Now in Go by jrajav on Saturday October 26, 2024 @10:02AM (#41954775)
It also sees very wide use, it's not just a proof of concept - most who've used any recent major version of Storybook (84k stars) would know about it: https://storybook.js.org/docs/writing-docs/mdx
Re:Mdx – Execute Your Markdown Code Blocks, Now in Go by ValentineC on Saturday October 26, 2024 @01:43PM (#41956362)
Re:Mdx – Execute Your Markdown Code Blocks, Now in Go by dcmatt on Saturday October 26, 2024 @03:33PM (#41957119)
Also Multidimensional expressions, popular in OLAP cubes. https://en.wikipedia.org/wiki/MultiDimensional_eXpressions
Re:Mdx – Execute Your Markdown Code Blocks, Now in Go by lsaferite on Sunday October 27, 2024 @08:41AM (#41962183)
I came to make the same comment, so glad it's been brought up and reenforced.

https://mdxjs.com/

Re:Mdx – Execute Your Markdown Code Blocks, Now in Go by lagniappe on Saturday October 26, 2024 @03:17AM (#41953144)
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?
Re:Mdx – Execute Your Markdown Code Blocks, Now in Go by wdavidw on Saturday October 26, 2024 @03:26AM (#41953177)
It is similar to how CoffeeScript literate works.
Re:Mdx – Execute Your Markdown Code Blocks, Now in Go by starkparker on Saturday October 26, 2024 @10:43AM (#41955037)
Re:Mdx – Execute Your Markdown Code Blocks, Now in Go by kchr on Sunday October 27, 2024 @10:20AM (#41962795)
I need a rundown of your clients.
Re:Mdx – Execute Your Markdown Code Blocks, Now in Go by oezi on Saturday October 26, 2024 @11:33AM (#41955390)
Can you compare to https://github.com/bashup/mdsh ?