News for hackers. Stuff that matters.
Re:Mdx – Execute Your Markdown Code Blocks, Now in Go by pomdtr on Saturday October 26, 2024 @01:46PM (#41956378)
I would prefer an api base on codeblocks meta string and json attributes.

```sh name="build" deps=["install"]

npm run build

```

This would be displayed just fine in github, as it is valid gfm.

Re:Mdx – Execute Your Markdown Code Blocks, Now in Go by mdaniel on Saturday October 26, 2024 @10:21PM (#41959371)
RunMe[1] seems like it is what you're looking for: https://docs.runme.dev/usage/run-tag

1: https://github.com/stateful/runme#runme-runs-markdown-- (Apache 2, golang)

I wondered why Runme wasn't already mentioned but it seems the comment got nested under a dead thread https://news.ycombinator.com/item?id=41955834