From b0da4d481eb532f521a8cad8660cbc08482c3c4c Mon Sep 17 00:00:00 2001 From: David Eisinger Date: Tue, 8 Oct 2024 15:51:39 -0400 Subject: [PATCH] Move mdrenum to sourcehut --- content/journal/dispatch-10-december-2023/index.md | 4 ++-- .../keep-markdown-links-in-order-with-mdrenum/index.md | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/content/journal/dispatch-10-december-2023/index.md b/content/journal/dispatch-10-december-2023/index.md index ea13034..0b29d0f 100644 --- a/content/journal/dispatch-10-december-2023/index.md +++ b/content/journal/dispatch-10-december-2023/index.md @@ -38,10 +38,10 @@ In what's now I guess an annual tradition, I ran a 10K the morning of Thanksgivi [3]: /journal/dispatch-10-december-2023/ttt-result.pdf [4]: /journal/dispatch-10-december-2023/ttt-cert.pdf -I spent few evenings building a tool to keep Markdown links in order, which I've called `mdrenum`. I documented the process thoroughly in a [separate post][5]. Super fun to make and quite useful for writing these posts. It's up on [GitHub][6] if you're interested. +I spent few evenings building a tool to keep Markdown links in order, which I've called `mdrenum`. I documented the process thoroughly in a [separate post][5]. Super fun to make and quite useful for writing these posts. It's up on [sourcehut][6] if you're interested. [5]: /journal/keep-markdown-links-in-order-with-mdrenum/ -[6]: https://github.com/dce/mdrenum +[6]: https://git.sr.ht/~dce/mdrenum I bought a [201 Pocket Piano][7] after seeing it on [Bonobo's gear list][8] so that I could make some music while we were traveling. This thing is cool! Great sounds and patterns, MIDI in/out, battery powered and a built-in speaker. The company that makes it releases new synths pretty regularly, and it's super straightforward to swap them out -- just plug it into your computer, hit a couple keys, and it shows up as a drive. diff --git a/content/journal/keep-markdown-links-in-order-with-mdrenum/index.md b/content/journal/keep-markdown-links-in-order-with-mdrenum/index.md index 24af0e8..343cd88 100644 --- a/content/journal/keep-markdown-links-in-order-with-mdrenum/index.md +++ b/content/journal/keep-markdown-links-in-order-with-mdrenum/index.md @@ -54,12 +54,12 @@ On a whim, I decided to check out [Deno][12], a newer alternative to Node.js for [14]: https://bun.sh/ [15]: https://bun.sh/docs/bundler/executables -Once I had a working proof-of-concept and a toolchain I was happy with, the rest was all fun; writing recursive functions that work with tree structures to do useful work is extremely my shit ([here's an old post I wrote about _The Little Schemer_][16] along these same lines). I added [Jest][17] and pulled in all my Go tests, as well as [Prettier][18] to stand in for `gofmt`. I wrapped things up earlier this week and published the result, which I've imaginatively called `mdrenum`, to [GitHub][19]. +Once I had a working proof-of-concept and a toolchain I was happy with, the rest was all fun; writing recursive functions that work with tree structures to do useful work is extremely my shit ([here's an old post I wrote about _The Little Schemer_][16] along these same lines). I added [Jest][17] and pulled in all my Go tests, as well as [Prettier][18] to stand in for `gofmt`. I wrapped things up earlier this week and published the result, which I've imaginatively called `mdrenum`, to [sourcehut][19]. [16]: /elsewhere/the-little-schemer-will-expand-blow-your-mind/ [17]: https://jestjs.io/ [18]: https://prettier.io/ -[19]: https://github.com/dce/mdrenum +[19]: https://git.sr.ht/~dce/mdrenum Bun (compiler) + TypeScript (type checking) + Prettier (code formatting) gets me most of what I like about working with Go, and I'm excited to use this tech in the future. The resulting executable is big (~45MB, as compared with ~2MB for my Go solution), but, hey, disk space is cheap and this actually works. @@ -81,10 +81,10 @@ auto-format = true formatter = { command = "mdrenum" , args = ["--stdin"] } ``` -[22]: https://github.com/dce/mdrenum/blob/42c28c1e4b964ebc348a2fef54daa3be51824a90/src/cli.ts#L6-L15 +[22]: https://git.sr.ht/~dce/mdrenum/tree/42c28c1e4b964ebc348a2fef54daa3be51824a90/item/src/cli.ts#L6-15 This totally works, and I'll say that it's uniquely satisfying to save a document and see the link numbers get instantly reordered properly. I've done it probably 100 times in the course of writing this post. --- -Thanks for coming on this journey with me, and if this seems like a tool that might be useful to you, grab it from [GitHub][19] and open an issue if you have any questions. +Thanks for coming on this journey with me, and if this seems like a tool that might be useful to you, grab it from [sourcehut][19] and open an issue if you have any questions.