off-topic

adi 2025-08-04T23:53:49.188719Z

Any pandoc gurus in the haus? I just pushed some code highlighting CSS to my site, which has made me happy-sad because... • Only a handful of rules, and lot of bang for the buck. ◦ Examples: https://www.evalapply.org/posts/clojure-mars-rover/index.html#move-1-identify-the-shape-of-core-data, https://www.evalapply.org/posts/bad-matrix/index.html#bad-matrix-1, https://www.evalapply.org/posts/animate-text-art-javascript/index.html#architecture-discovering-the-spreadsheet-in-the-problem, and https://www.evalapply.org/posts/shite-the-static-sites-from-shell-part-1/index.html#harness-html.energy-to-model-our-would-be-site too. ◦ Good enough token colouring, no JavaScript necessary. • BUT pandoc is weird about parsing :snake_case_things in Clojure... and that is nixing my joy. ◦ Example:https://www.evalapply.org/posts/poor-mans-time-oriented-data-system/index.html#code-saasy-sqlite-configuration, but I've also failed to find a fix (short of writing Haskell). • nb. pandoc compiles my org-mode files to HTML, but the problem is not how it parses org-mode specifically. It is how pandoc is tokenising words with _ in-between (instead of as formatting marks). --- (edit: Update. Solved (by ignoring). See thread.)

2025-08-05T07:03:53.383019Z

oh so in theory you can extend it with fennel then.

liebs 2025-08-05T07:47:19.554879Z

I suppose so

adi 2025-08-05T08:41:21.479509Z

Yes, but same problem... I have to install and learn lua. Not that it won't be fun, but I want to have other fun. No access to borkdude self-cloning tech, sadly. So only one of me and way too much of everything else.

1
adi 2025-08-05T00:30:45.330099Z

oookkkkayy so I'm giving up ... it can remain broken, nobody's getting hurt someone in another chat explained... https://github.com/jgm/skylighting pandoc uses this for syntax highlighting which in turn is using https://github.com/KDE/syntax-highlighting/blob/master/data/syntax/clojure.xml aka https://kate-editor.org/syntax/data/syntax/clojure.xml

liebs 2025-08-05T06:30:24.591069Z

just FYI you can extend pandoc by writing Lua if that appeals to you more than writing Haskell