From cce566fcb1c718cefa4d392cfbe3898d5c1d80b7 Mon Sep 17 00:00:00 2001 From: David Eisinger Date: Thu, 8 Jan 2026 16:44:32 -0500 Subject: [PATCH] Normalize title tags --- content/journal/dispatch-9-november-2023/index.md | 6 +++--- .../keep-markdown-links-in-order-with-mdrenum/index.md | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/content/journal/dispatch-9-november-2023/index.md b/content/journal/dispatch-9-november-2023/index.md index 7161de3..4cd75ac 100644 --- a/content/journal/dispatch-9-november-2023/index.md +++ b/content/journal/dispatch-9-november-2023/index.md @@ -43,7 +43,7 @@ It was nice to have a quieter month after so much travel this summer. We got a f {{}}Little girl races from the slide, bunny in hand, while Dad stoops with a proud smile at the playground.{{}} {{}}Little pumpkin on the porch, proudly showing off her matching blanket and gourd buddy.{{}} -## Tech +### Tech At my job, I did a cool project working with data from a [Freematics][5] car telematics device. I built a data exploration API using [Gin][6] and learned [`jq`][7] to truncate enormous JSON objects[^1]. I also got to, just like, drive my car around to test things out. @@ -56,7 +56,7 @@ I also made some updates to my [`golong`][8] tool to prep for a fantasy NBA draf [7]: https://github.com/jqlang/jq [8]: /journal/dispatch-7-september-2023/ -## Music +### Music I'm still having a blast with the Novation Circuit Tracks I got last month. I came up with a track I actually really like, which I'm calling "Radiatus" (which is a [type of cloud][9]): @@ -70,7 +70,7 @@ My phone (and yours probably) sends me these photo slideshows periodically, and [10]: https://lackofafro.com/ -## Website +### Website I made a few updates to the website this month: 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 b5f3d7e..3ab4150 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 @@ -27,7 +27,7 @@ As I was working on the script, it was pretty easy to think of cases in which it [6]: https://leancrew.com/all-this/2012/09/tidying-markdown-reference-links/ -## First Attempts with Go +### First Attempts with Go My very first attempt involved the [`gomarkdown`][7] package. It was super straightforward to turn a Markdown document into an AST, but after an hour or so of investigation, it was pretty clear that I wasn't going to be able to get the original text and position of the links. I switched over to [`goldmark`][8], which is what this website uses to turn Markdown into HTML. This seemed a lot more promising -- it has functions for retrieving the content of nodes, as well as `start` and `stop` attributes that indicate position in the original text. I thought I had it nailed, but as I started writing tests, I realized there were certain cases where I couldn't perfectly locate the links -- two links smashed right up against one another, as an example. I spent a long time trying to come up with something that covered all the weird edge cases, but eventually gave up in frustration. @@ -36,7 +36,7 @@ My very first attempt involved the [`gomarkdown`][7] package. It was super strai Both of these libraries are built to take Markdown, parse it, and turn it into HTML. That's fine, that's what Markdown is for, but for my use case, they came up short. I briefly considered forking `goldmark` to add the functionality I needed, but instead decided to look elsewhere. -## A Promising JavaScript Library +### A Promising JavaScript Library I searched for generic Markdown/AST libraries just to see what else was out there, and a [helpful Stackoverflow comment][9] led me to [`mdast-util-from-markdown`][10], a JavaScript library for working with Markdown without a specific output format. I pulled it down and ran the example code, and it was immediately obvious that it would provide the data I needed. @@ -47,7 +47,7 @@ But now I had a new problem: I like JavaScript (and especially TypeScript) just [11]: https://www.codeconvert.ai/typescript-to-golang-converter -## New JS Runtimes to the Rescue +### New JS Runtimes to the Rescue On a whim, I decided to check out [Deno][12], a newer alternative to Node.js for server-side JS. Turns out it has the ability to [compile JS into standalone executables][13]. I downloaded it and ran it against the example code, and it worked! I got a (rather large) executable with the same output as running my script with Node. A coworker recommended I check out [Bun][14], which has [a similar compilation feature][15] -- it worked just as well, and the resulting executable was about a third the size as Deno's, so I opted to go with that. @@ -65,7 +65,7 @@ Once I had a working proof-of-concept and a toolchain I was happy with, the rest 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. -## Integrating with Helix +### Integrating with Helix I've been a [happy Helix user][20] for the last several months, and I thought it'd be cool to configure it to automatically renumber links every time I save a Markdown file. [The docs][21] do a good job explaining how to add a language-specific formatter: