Thanks! The original source is custom js rendering to svg. The html version of the article contains png files based on that output; the pdf version contains vectorized versions. I got some solid design input from Mike Sall on the images for this article.
Edit: example: https://github.com/tylerneylon/math/blob/master/self_repl_fn...