clerk

narimiran 2026-05-12T13:39:51.789279Z

Are there any plans for a new Clerk release? 🙂

narimiran 2026-05-23T22:24:42.078949Z

@mkvlr @borkdude It seems that one old issue with links is still here.... To reproduce: • go to https://narimiran.github.io/aoc2025/ • left-click on the "Quick intro to Clojure" (Clerk notebook in another repo) link on the first line You get:

Cannot set properties of null

Hide Stacktrace (10 lines)
at oD ()
at aoa ()
at qoa ()
at roa ()
at yoa ()
at g.Lg ()
at bD ()
at noa ()
at g.Mg ()
at cD ()
It doesn't happen if you use middle-click instead of left-click. It also goes away if you press F5 when you see that stack trace.

borkdude 2026-05-24T06:22:14.058339Z

I'll take a look at this on Monday

borkdude 2026-05-12T13:41:16.696469Z

have you tested the git release?

borkdude 2026-05-12T13:41:33.626289Z

what fixes/features are you interested in (just FMI)

narimiran 2026-05-12T13:51:48.956989Z

This is the first one that comes to my mind, as I've been applying unsuccessful workarounds for it since 2024: https://github.com/nextjournal/clerk/pull/784

borkdude 2026-05-12T13:52:24.351079Z

and the other question?

narimiran 2026-05-12T13:54:16.038159Z

What git release exactly? In the releases, there's only this: https://github.com/nextjournal/clerk/tags If you mean the latest git commit - I haven't. But I did test (several months ago) with some post-release commit (and post-PR784) and that one worked fine.

narimiran 2026-05-12T13:56:55.480819Z

It's ok if y'all are planning some more fixes relatively soon (in the next months) before making a release — I can wait, there's no rush on my side. Just was curious if there are any plans....

borkdude 2026-05-12T14:00:37.683759Z

sorry yeah, I meant the latest git commit. you can always use that instead of a release. whether @mkvlr plans a release: we will hear when he wakes up :) thanks for testing!

narimiran 2026-05-25T07:26:13.878059Z

Oh my, this trailing slash just won't stop. Here's another bug: When you're at https://narimiran.github.io/aoc2025/ and click one of the notebooks in the table: • if you left-click a link, you get e.g. https://narimiran.github.io/aoc2025/src/day05 (without trailing slash) • if you middle-click (open in a new tab), you get https://narimiran.github.io/aoc2025/src/day05/ (with a trailing slash) And this messes up the relative links inside of that notebook, in the same way as described in the message above.

narimiran 2026-05-25T07:31:51.066229Z

I just force-pushed a revert to a previous Clerk version, so you probably won't be able to reproduce all this anymore just by clicking the links I provided, but I couldn't stand all this brokeness anymore.

borkdude 2026-05-25T07:33:26.883919Z

If you want it fixed provide a repro please and open an issue

narimiran 2026-05-25T07:35:16.507929Z

Repro: • clone the repository • update Clerk to the latest git commit • push it to Github (locally it behaves differently) • follow the steps described in the previous messages

👍 1
narimiran 2026-05-25T07:37:25.596139Z

The first reported issue ("left-click on the "Quick intro to Clojure" (Clerk notebook in another repo) link on the first line") is still present even with my revert. No need to clone to reproduce it in your browser. The difference between left- and middle-click is not there anymore, i.e. it was probably introduced by #784.

mkvlr 2026-05-13T12:17:05.563749Z

if you can use the current main git sha a bit and report back if you run into issues, I’d appreciate it

mkvlr 2026-05-13T12:17:32.398579Z

can always cut a release easily but don’t have a ton of time for testing myself currently

mkvlr 2026-05-13T12:18:59.780939Z

or are you using lein and can’t use git shas?

narimiran 2026-05-24T11:14:11.562359Z

And now I see it doesn't have to be a link to another notebook. It seems it is any link on the same domain, e.g. in https://narimiran.github.io/aoc2025/src/day04 if you try to click (left-click!) on the "grid-helper functions" link or "aoc/parse-line function" link, it shows the same problem. Links to "outside", e.g. clicking on the title ("Printing Department"), correctly renders the linked page. BUT, it just uncovered another bug: You click on the title, it correctly opens the link, and then you hit 'back' and there's a trailing slash in the URL that wasn't there before: .../src/day04/ , making links on the bottom of the page ("previous solution", "next solution") to misbehave as before: they point to e.g. .../src/day04/day03 instead of .../src/day03. And it also changes where "Index" link at the very top of the page points to. Initially it was (wrongly!) pointing to https://narimiran.github.io, and after you have a page with a trailing slash it (correctly) points to https://narimiran.github.io/aoc2025/. I'm guessing there's some more places where the change from https://github.com/nextjournal/clerk/pull/784 needs to be applied. (And then fixed how "index" is picked when there's no trailing slash.)