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?I'll reply to the github issue
Thank you sir! Workaround works well 🙂
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?
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 "$"))
oh right, update-viewers expects a map or fn -> update-fn... yeah it's a bit... special :)
I guess you could also just massage the data yourself and just use reset-viewers
ok, got it now thanks
Thank you 🙂