In my last post,
I covered math-symbol prettification in Emacs. While writing it, I got
interested in doing the same thing in Javascript for the code samples
in this blog. So I wrote some code!
The tricky thing here is ensuring that if you copy a code sample, you
get the original text instead of the prettified text.
The code above uses Underscore and jQuery, and is designed to work
with Jekyll code-blocks. Should be pretty easy to modify it for other
code-sample formats, but your mileage may vary.