clerk

kenny 2025-10-24T14:03:07.487209Z

Hi folks. Clerk has been excellent! I have a specific issue with comments containing dollar amounts. For example, this comment:

;; showing the dual-fuel advantage grows from ~$50K at low volatility to ~$115K at high volatility.
renders using the TeX renderer. To display it correctly, I need to escape the dollar signs:
;; showing the dual-fuel advantage grows from ~\$50K at low volatility to ~\$115K at high volatility.
This gets tedious quickly—we write dollar amounts constantly and never use TeX. Any suggestions for a better solution?

✅ 1
borkdude 2025-10-31T08:59:41.370469Z

I'll reply to the github issue

kenny 2025-10-31T13:57:04.791759Z

Thank you sir! Workaround works well 🙂

borkdude 2025-10-31T13:57:59.751619Z

nice! I'm not sure if I understand the code myself. perhaps you can explain how the map literal + predicate function in the key works?

kenny 2025-10-31T14:01:41.903999Z

TBH, it could probably be simplified by not using update-viewers. I’m not 100% sure why that even exists in Clerk’s API. Feels a bit non-clojurey, haha. At the end of the day, all we need to do is replace the render-fn for the formula and block-formula viewers with :render-fn '(fn [v] (str "$" v "$"))

borkdude 2025-10-31T14:03:01.183409Z

oh right, update-viewers expects a map or fn -> update-fn... yeah it's a bit... special :)

borkdude 2025-10-31T14:03:36.345319Z

I guess you could also just massage the data yourself and just use reset-viewers

✔️ 1
borkdude 2025-10-31T14:03:43.111349Z

ok, got it now thanks

kenny 2025-10-31T14:03:53.841229Z

Thank you 🙂