Are there any plans for a new Clerk release? 🙂
@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.I'll take a look at this on Monday
have you tested the git release?
what fixes/features are you interested in (just FMI)
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
and the other question?
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.
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....
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!
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.
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.
If you want it fixed provide a repro please and open an issue
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
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.
if you can use the current main git sha a bit and report back if you run into issues, I’d appreciate it
can always cut a release easily but don’t have a ton of time for testing myself currently
or are you using lein and can’t use git shas?
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.)